[
  {
    "path": "AUTHORS",
    "content": "* Simon Ekstrand (simon@routemeister.net)\n\n"
  },
  {
    "path": "COPYING",
    "content": "Copyright (c) 2003 Simon Ekstrand\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n3. The name of the author may not be used to endorse or promote products\n   derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\nNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n"
  },
  {
    "path": "ChangeLog",
    "content": "Mon Jan 14 19:39:00 CET 2013\n  * Fix multiple buffer overflows. Patch from Jaromir Capik.\n  * Fix multiple spelling errors. Suggestions from Ross Richardson.\n  * Version 1.1.6\n\nMon Jul 20 22:38:14 CET 2009\n  * Compilation fix for GCC 4.4, patch from Artem Zolochevskiy.\n  * Compilation fix Sun Studio 11 on Solaris 8 x86, patch from Ian Dickinson.\n  * Version 1.1.5\n\nFri Nov 10 11:05:06 CET 2006\n  * Fixed a bunch of compiler warnings when compiling with -Wall.\n    Thanks to the sipcalc Debian package maintainer Adriaan Peeters\n    for the heads up.\n  * Version 1.1.4\n\nWed Nov  2 10:03:00 CET 2005\n  * Fixed typos in sipcalc man page, thanks to A Costa <agcosta@gis.net>\n    for patch.\n  * Added -w ipv4 option to display some inverse mask information.\n\nWed Mar 19 13:27:32 CET 2003\n  * Changed stuff around to be compatible with newer version of autoconf.\n  * Updated ipv6 reverse dns output to use the domain ip6.arpa instead of\n    ip6.int, thanks to Mns Nilsson for bringing this to my attention.\n  * Change license from GPL to BSD, see COPYING for details.\n  * Version 1.1.2\n\nFri May 24 23:05:42 CEST 2002\n  * Removed web (cgi) support for now.\n  * Version 1.1.1\n\nTue Apr 16 23:03:23 CEST 2002\n  * Some minor bugfixing.\n  * Verified MacOSX support, no ipv6 dns resolution though.\n  * Version 1.1.1-pre2\n\nMon Apr  8 20:18:24 CEST 2002\n  * Rewrote much of the argument handling.\n  * Rewrote much of the DNS parsing.\n  * Multiple addresses for a resolved host are now supported,\n    both with ipv4 and ipv6.\n  * DNS resolution now works with stdin parsing.\n  * Version 1.1.1-pre1\n\nThu Apr  4 23:01:30 CEST 2002\n  * Fixed improper parsing of subnetmask in some cases where dns resolution\n    and the -4 argument was used.\n\nMon Mar 11 14:22:15 CET 2002\n  * Version 1.1.0\n  * See NEWS for details.\n\nSat Mar  9 21:47:34 CET 2002\n  * Added use of dns resolution.\n  * Version 1.1.0-pre4\n\nSun Jan 13 20:25:09 CET 2002\n  * Fixed sipcalc cgi-script.\n  * Multiple other minor fixes.\n  * Version 1.1.0-pre1\n\nFri Jan  4 02:00:45 CET 2002\n  * Added preliminary IPv6 support, functionallity so far is basic IPv6\n    info, v4inv6 info and split network functions.\n  * Version 1.0.4-pre1\n\nThu Dec 13 23:13:01 CET 2001\n  * Finally added a manpage.\n  * Several minor changes to documentation\n  * Version 1.0.3\n\nFri Jul 13 22:12:06 CEST 2001\n  * Some minor cosmetic changes.\n  * Added split-network to sipcalc-www.\n  * Split-network commandline parsing bugfixes.\n  * Version 1.0.2\n  This should really be good enough for a stable release, though\n  sipcalc-www needs more cleaning.\n\nFri Jun 29 19:32:50 CEST 2001\n  * Lots of Solaris compile fixes (u_int32_t, libsocket, SIOCGIFADDR ...),\n    sipcalc compiles fine on Solaris now.\n  * Fixed getopt_long support for freebsd.\n  * Interface detection was broken on Linux-alpha due to one of the unions\n    in struct ifreq being larger on 64bit then 32bit architectures.\n    Should now hopefully be fixed in a completely portable manner.\n  * Lots of minor fixes for multiple architectures (made good use of the\n    sourceforge compile farm).\n  * Version 1.0.2b7\n\nSun May 13 23:37:09 CEST 2001\n  * Build process now uses configure.\n  * Version 1.0.2b1\n\nThu May 10 19:40:27 CEST 2001\n  * Support for stdin parsing complete.\n  * Multiple addresses/interfaces on commandline supported.\n  * Changed to getopt for argument handling.\n\nSat May  5 01:09:19 CEST 2001\n  * The interface code now (hopefully) handles interfaces with multiple\n    addresses correctly.\n\nWed May  2 18:38:56 CEST 2001\n  * Changed to u_int32_t for extra portability, this also fixed support for\n    alpha (tru64).\n  * Version 1.0.1\n\nSat Mar  3 00:07:59 CEST 2001\n  * Added support for \"reverse engineering\" of interfaces.\n\nThu Feb 18 20:35:49 CEST 2001\n  * First commit of web (cgi) support.\n\nWed Feb 10 16:55:14 CEST 2001\n  * Initial commit.\n\n"
  },
  {
    "path": "INSTALL",
    "content": "Basic Installation\n==================\n\n   These are generic installation instructions.\n\n   The `configure' shell script attempts to guess correct values for\nvarious system-dependent variables used during compilation.  It uses\nthose values to create a `Makefile' in each directory of the package.\nIt may also create one or more `.h' files containing system-dependent\ndefinitions.  Finally, it creates a shell script `config.status' that\nyou can run in the future to recreate the current configuration, a file\n`config.cache' that saves the results of its tests to speed up\nreconfiguring, and a file `config.log' containing compiler output\n(useful mainly for debugging `configure').\n\n   If you need to do unusual things to compile the package, please try\nto figure out how `configure' could check whether to do them, and mail\ndiffs or instructions to the address given in the `README' so they can\nbe considered for the next release.  If at some point `config.cache'\ncontains results you don't want to keep, you may remove or edit it.\n\n   The file `configure.in' is used to create `configure' by a program\ncalled `autoconf'.  You only need `configure.in' if you want to change\nit or regenerate `configure' using a newer version of `autoconf'.\n\nThe simplest way to compile this package is:\n\n  1. `cd' to the directory containing the package's source code and type\n     `./configure' to configure the package for your system.  If you're\n     using `csh' on an old version of System V, you might need to type\n     `sh ./configure' instead to prevent `csh' from trying to execute\n     `configure' itself.\n\n     Running `configure' takes awhile.  While running, it prints some\n     messages telling which features it is checking for.\n\n  2. Type `make' to compile the package.\n\n  3. Optionally, type `make check' to run any self-tests that come with\n     the package.\n\n  4. Type `make install' to install the programs and any data files and\n     documentation.\n\n  5. You can remove the program binaries and object files from the\n     source code directory by typing `make clean'.  To also remove the\n     files that `configure' created (so you can compile the package for\n     a different kind of computer), type `make distclean'.  There is\n     also a `make maintainer-clean' target, but that is intended mainly\n     for the package's developers.  If you use it, you may have to get\n     all sorts of other programs in order to regenerate files that came\n     with the distribution.\n\nCompilers and Options\n=====================\n\n   Some systems require unusual options for compilation or linking that\nthe `configure' script does not know about.  You can give `configure'\ninitial values for variables by setting them in the environment.  Using\na Bourne-compatible shell, you can do that on the command line like\nthis:\n     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure\n\nOr on systems that have the `env' program, you can do it like this:\n     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure\n\nCompiling For Multiple Architectures\n====================================\n\n   You can compile the package for more than one kind of computer at the\nsame time, by placing the object files for each architecture in their\nown directory.  To do this, you must use a version of `make' that\nsupports the `VPATH' variable, such as GNU `make'.  `cd' to the\ndirectory where you want the object files and executables to go and run\nthe `configure' script.  `configure' automatically checks for the\nsource code in the directory that `configure' is in and in `..'.\n\n   If you have to use a `make' that does not supports the `VPATH'\nvariable, you have to compile the package for one architecture at a time\nin the source code directory.  After you have installed the package for\none architecture, use `make distclean' before reconfiguring for another\narchitecture.\n\nInstallation Names\n==================\n\n   By default, `make install' will install the package's files in\n`/usr/local/bin', `/usr/local/man', etc.  You can specify an\ninstallation prefix other than `/usr/local' by giving `configure' the\noption `--prefix=PATH'.\n\n   You can specify separate installation prefixes for\narchitecture-specific files and architecture-independent files.  If you\ngive `configure' the option `--exec-prefix=PATH', the package will use\nPATH as the prefix for installing programs and libraries.\nDocumentation and other data files will still use the regular prefix.\n\n   In addition, if you use an unusual directory layout you can give\noptions like `--bindir=PATH' to specify different values for particular\nkinds of files.  Run `configure --help' for a list of the directories\nyou can set and what kinds of files go in them.\n\n   If the package supports it, you can cause programs to be installed\nwith an extra prefix or suffix on their names by giving `configure' the\noption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.\n\nOptional Features\n=================\n\n   Some packages pay attention to `--enable-FEATURE' options to\n`configure', where FEATURE indicates an optional part of the package.\nThey may also pay attention to `--with-PACKAGE' options, where PACKAGE\nis something like `gnu-as' or `x' (for the X Window System).  The\n`README' should mention any `--enable-' and `--with-' options that the\npackage recognizes.\n\n   For packages that use the X Window System, `configure' can usually\nfind the X include and library files automatically, but if it doesn't,\nyou can use the `configure' options `--x-includes=DIR' and\n`--x-libraries=DIR' to specify their locations.\n\nSpecifying the System Type\n==========================\n\n   There may be some features `configure' can not figure out\nautomatically, but needs to determine by the type of host the package\nwill run on.  Usually `configure' can figure that out, but if it prints\na message saying it can not guess the host type, give it the\n`--host=TYPE' option.  TYPE can either be a short name for the system\ntype, such as `sun4', or a canonical name with three fields:\n     CPU-COMPANY-SYSTEM\n\nSee the file `config.sub' for the possible values of each field.  If\n`config.sub' isn't included in this package, then this package doesn't\nneed to know the host type.\n\n   If you are building compiler tools for cross-compiling, you can also\nuse the `--target=TYPE' option to select the type of system they will\nproduce code for and the `--build=TYPE' option to select the type of\nsystem on which you are compiling the package.\n\nSharing Defaults\n================\n\n   If you want to set default values for `configure' scripts to share,\nyou can create a site shell script called `config.site' that gives\ndefault values for variables like `CC', `cache_file', and `prefix'.\n`configure' looks for `PREFIX/share/config.site' if it exists, then\n`PREFIX/etc/config.site' if it exists.  Or, you can set the\n`CONFIG_SITE' environment variable to the location of the site script.\nA warning: not all `configure' scripts look for a site script.\n\nOperation Controls\n==================\n\n   `configure' recognizes the following options to control how it\noperates.\n\n`--cache-file=FILE'\n     Use and save the results of the tests in FILE instead of\n     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for\n     debugging `configure'.\n\n`--help'\n     Print a summary of the options to `configure', and exit.\n\n`--quiet'\n`--silent'\n`-q'\n     Do not print messages saying which checks are being made.  To\n     suppress all normal output, redirect it to `/dev/null' (any error\n     messages will still be shown).\n\n`--srcdir=DIR'\n     Look for the package's source code in directory DIR.  Usually\n     `configure' can determine that directory automatically.\n\n`--version'\n     Print the version of Autoconf used to generate the `configure'\n     script, and exit.\n\n`configure' also accepts some other, not widely useful, options.\n"
  },
  {
    "path": "Makefile.am",
    "content": "EXTRA_DIST = configure\nSUBDIRS = doc include src\n\n"
  },
  {
    "path": "Makefile.in",
    "content": "# Makefile.in generated by automake 1.11.6 from Makefile.am.\n# @configure_input@\n\n# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,\n# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software\n# Foundation, Inc.\n# This Makefile.in is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY, to the extent permitted by law; without\n# even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n# PARTICULAR PURPOSE.\n\n@SET_MAKE@\nVPATH = @srcdir@\nam__make_dryrun = \\\n  { \\\n    am__dry=no; \\\n    case $$MAKEFLAGS in \\\n      *\\\\[\\ \\\t]*) \\\n        echo 'am--echo: ; @echo \"AM\"  OK' | $(MAKE) -f - 2>/dev/null \\\n          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \\\n      *) \\\n        for am__flg in $$MAKEFLAGS; do \\\n          case $$am__flg in \\\n            *=*|--*) ;; \\\n            *n*) am__dry=yes; break;; \\\n          esac; \\\n        done;; \\\n    esac; \\\n    test $$am__dry = yes; \\\n  }\npkgdatadir = $(datadir)/@PACKAGE@\npkgincludedir = $(includedir)/@PACKAGE@\npkglibdir = $(libdir)/@PACKAGE@\npkglibexecdir = $(libexecdir)/@PACKAGE@\nam__cd = CDPATH=\"$${ZSH_VERSION+.}$(PATH_SEPARATOR)\" && cd\ninstall_sh_DATA = $(install_sh) -c -m 644\ninstall_sh_PROGRAM = $(install_sh) -c\ninstall_sh_SCRIPT = $(install_sh) -c\nINSTALL_HEADER = $(INSTALL_DATA)\ntransform = $(program_transform_name)\nNORMAL_INSTALL = :\nPRE_INSTALL = :\nPOST_INSTALL = :\nNORMAL_UNINSTALL = :\nPRE_UNINSTALL = :\nPOST_UNINSTALL = :\nsubdir = .\nDIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \\\n\t$(srcdir)/Makefile.in $(srcdir)/config.h.in \\\n\t$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \\\n\tTODO depcomp install-sh missing mkinstalldirs\nACLOCAL_M4 = $(top_srcdir)/aclocal.m4\nam__aclocal_m4_deps = $(top_srcdir)/configure.ac\nam__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\\n\t$(ACLOCAL_M4)\nam__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \\\n configure.lineno config.status.lineno\nmkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs\nCONFIG_HEADER = config.h\nCONFIG_CLEAN_FILES =\nCONFIG_CLEAN_VPATH_FILES =\nSOURCES =\nDIST_SOURCES =\nRECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \\\n\thtml-recursive info-recursive install-data-recursive \\\n\tinstall-dvi-recursive install-exec-recursive \\\n\tinstall-html-recursive install-info-recursive \\\n\tinstall-pdf-recursive install-ps-recursive install-recursive \\\n\tinstallcheck-recursive installdirs-recursive pdf-recursive \\\n\tps-recursive uninstall-recursive\nam__can_run_installinfo = \\\n  case $$AM_UPDATE_INFO_DIR in \\\n    n|no|NO) false;; \\\n    *) (install-info --version) >/dev/null 2>&1;; \\\n  esac\nRECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive\t\\\n  distclean-recursive maintainer-clean-recursive\nAM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \\\n\t$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \\\n\tdistdir dist dist-all distcheck\nETAGS = etags\nCTAGS = ctags\nDIST_SUBDIRS = $(SUBDIRS)\nDISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)\ndistdir = $(PACKAGE)-$(VERSION)\ntop_distdir = $(distdir)\nam__remove_distdir = \\\n  if test -d \"$(distdir)\"; then \\\n    find \"$(distdir)\" -type d ! -perm -200 -exec chmod u+w {} ';' \\\n      && rm -rf \"$(distdir)\" \\\n      || { sleep 5 && rm -rf \"$(distdir)\"; }; \\\n  else :; fi\nam__relativize = \\\n  dir0=`pwd`; \\\n  sed_first='s,^\\([^/]*\\)/.*$$,\\1,'; \\\n  sed_rest='s,^[^/]*/*,,'; \\\n  sed_last='s,^.*/\\([^/]*\\)$$,\\1,'; \\\n  sed_butlast='s,/*[^/]*$$,,'; \\\n  while test -n \"$$dir1\"; do \\\n    first=`echo \"$$dir1\" | sed -e \"$$sed_first\"`; \\\n    if test \"$$first\" != \".\"; then \\\n      if test \"$$first\" = \"..\"; then \\\n        dir2=`echo \"$$dir0\" | sed -e \"$$sed_last\"`/\"$$dir2\"; \\\n        dir0=`echo \"$$dir0\" | sed -e \"$$sed_butlast\"`; \\\n      else \\\n        first2=`echo \"$$dir2\" | sed -e \"$$sed_first\"`; \\\n        if test \"$$first2\" = \"$$first\"; then \\\n          dir2=`echo \"$$dir2\" | sed -e \"$$sed_rest\"`; \\\n        else \\\n          dir2=\"../$$dir2\"; \\\n        fi; \\\n        dir0=\"$$dir0\"/\"$$first\"; \\\n      fi; \\\n    fi; \\\n    dir1=`echo \"$$dir1\" | sed -e \"$$sed_rest\"`; \\\n  done; \\\n  reldir=\"$$dir2\"\nDIST_ARCHIVES = $(distdir).tar.gz\nGZIP_ENV = --best\ndistuninstallcheck_listfiles = find . -type f -print\nam__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \\\n  | sed 's|^\\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'\ndistcleancheck_listfiles = find . -type f -print\nACLOCAL = @ACLOCAL@\nAMTAR = @AMTAR@\nAUTOCONF = @AUTOCONF@\nAUTOHEADER = @AUTOHEADER@\nAUTOMAKE = @AUTOMAKE@\nAWK = @AWK@\nCC = @CC@\nCCDEPMODE = @CCDEPMODE@\nCFLAGS = @CFLAGS@\nCPP = @CPP@\nCPPFLAGS = @CPPFLAGS@\nCYGPATH_W = @CYGPATH_W@\nDEFS = @DEFS@\nDEPDIR = @DEPDIR@\nECHO_C = @ECHO_C@\nECHO_N = @ECHO_N@\nECHO_T = @ECHO_T@\nEGREP = @EGREP@\nEXEEXT = @EXEEXT@\nGREP = @GREP@\nINSTALL = @INSTALL@\nINSTALL_DATA = @INSTALL_DATA@\nINSTALL_PROGRAM = @INSTALL_PROGRAM@\nINSTALL_SCRIPT = @INSTALL_SCRIPT@\nINSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@\nLDFLAGS = @LDFLAGS@\nLIBOBJS = @LIBOBJS@\nLIBS = @LIBS@\nLTLIBOBJS = @LTLIBOBJS@\nMAKEINFO = @MAKEINFO@\nMKDIR_P = @MKDIR_P@\nOBJEXT = @OBJEXT@\nPACKAGE = @PACKAGE@\nPACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@\nPACKAGE_NAME = @PACKAGE_NAME@\nPACKAGE_STRING = @PACKAGE_STRING@\nPACKAGE_TARNAME = @PACKAGE_TARNAME@\nPACKAGE_URL = @PACKAGE_URL@\nPACKAGE_VERSION = @PACKAGE_VERSION@\nPATH_SEPARATOR = @PATH_SEPARATOR@\nSET_MAKE = @SET_MAKE@\nSHELL = @SHELL@\nSTRIP = @STRIP@\nVERSION = @VERSION@\nabs_builddir = @abs_builddir@\nabs_srcdir = @abs_srcdir@\nabs_top_builddir = @abs_top_builddir@\nabs_top_srcdir = @abs_top_srcdir@\nac_ct_CC = @ac_ct_CC@\nam__include = @am__include@\nam__leading_dot = @am__leading_dot@\nam__quote = @am__quote@\nam__tar = @am__tar@\nam__untar = @am__untar@\nbindir = @bindir@\nbuild_alias = @build_alias@\nbuilddir = @builddir@\ndatadir = @datadir@\ndatarootdir = @datarootdir@\ndocdir = @docdir@\ndvidir = @dvidir@\nexec_prefix = @exec_prefix@\nhost_alias = @host_alias@\nhtmldir = @htmldir@\nincludedir = @includedir@\ninfodir = @infodir@\ninstall_sh = @install_sh@\nlibdir = @libdir@\nlibexecdir = @libexecdir@\nlocaledir = @localedir@\nlocalstatedir = @localstatedir@\nmandir = @mandir@\nmkdir_p = @mkdir_p@\noldincludedir = @oldincludedir@\npdfdir = @pdfdir@\nprefix = @prefix@\nprogram_transform_name = @program_transform_name@\npsdir = @psdir@\nsbindir = @sbindir@\nsharedstatedir = @sharedstatedir@\nsrcdir = @srcdir@\nsysconfdir = @sysconfdir@\ntarget_alias = @target_alias@\ntop_build_prefix = @top_build_prefix@\ntop_builddir = @top_builddir@\ntop_srcdir = @top_srcdir@\nEXTRA_DIST = configure\nSUBDIRS = doc include src\nall: config.h\n\t$(MAKE) $(AM_MAKEFLAGS) all-recursive\n\n.SUFFIXES:\nam--refresh: Makefile\n\t@:\n$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)\n\t@for dep in $?; do \\\n\t  case '$(am__configure_deps)' in \\\n\t    *$$dep*) \\\n\t      echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \\\n\t      $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \\\n\t\t&& exit 0; \\\n\t      exit 1;; \\\n\t  esac; \\\n\tdone; \\\n\techo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \\\n\t$(am__cd) $(top_srcdir) && \\\n\t  $(AUTOMAKE) --gnu Makefile\n.PRECIOUS: Makefile\nMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status\n\t@case '$?' in \\\n\t  *config.status*) \\\n\t    echo ' $(SHELL) ./config.status'; \\\n\t    $(SHELL) ./config.status;; \\\n\t  *) \\\n\t    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \\\n\t    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \\\n\tesac;\n\n$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)\n\t$(SHELL) ./config.status --recheck\n\n$(top_srcdir)/configure:  $(am__configure_deps)\n\t$(am__cd) $(srcdir) && $(AUTOCONF)\n$(ACLOCAL_M4):  $(am__aclocal_m4_deps)\n\t$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)\n$(am__aclocal_m4_deps):\n\nconfig.h: stamp-h1\n\t@if test ! -f $@; then rm -f stamp-h1; else :; fi\n\t@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi\n\nstamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status\n\t@rm -f stamp-h1\n\tcd $(top_builddir) && $(SHELL) ./config.status config.h\n$(srcdir)/config.h.in:  $(am__configure_deps) \n\t($(am__cd) $(top_srcdir) && $(AUTOHEADER))\n\trm -f stamp-h1\n\ttouch $@\n\ndistclean-hdr:\n\t-rm -f config.h stamp-h1\n\n# This directory's subdirectories are mostly independent; you can cd\n# into them and run `make' without going through this Makefile.\n# To change the values of `make' variables: instead of editing Makefiles,\n# (1) if the variable is set in `config.status', edit `config.status'\n#     (which will cause the Makefiles to be regenerated when you run `make');\n# (2) otherwise, pass the desired values on the `make' command line.\n$(RECURSIVE_TARGETS):\n\t@fail= failcom='exit 1'; \\\n\tfor f in x $$MAKEFLAGS; do \\\n\t  case $$f in \\\n\t    *=* | --[!k]*);; \\\n\t    *k*) failcom='fail=yes';; \\\n\t  esac; \\\n\tdone; \\\n\tdot_seen=no; \\\n\ttarget=`echo $@ | sed s/-recursive//`; \\\n\tlist='$(SUBDIRS)'; for subdir in $$list; do \\\n\t  echo \"Making $$target in $$subdir\"; \\\n\t  if test \"$$subdir\" = \".\"; then \\\n\t    dot_seen=yes; \\\n\t    local_target=\"$$target-am\"; \\\n\t  else \\\n\t    local_target=\"$$target\"; \\\n\t  fi; \\\n\t  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \\\n\t  || eval $$failcom; \\\n\tdone; \\\n\tif test \"$$dot_seen\" = \"no\"; then \\\n\t  $(MAKE) $(AM_MAKEFLAGS) \"$$target-am\" || exit 1; \\\n\tfi; test -z \"$$fail\"\n\n$(RECURSIVE_CLEAN_TARGETS):\n\t@fail= failcom='exit 1'; \\\n\tfor f in x $$MAKEFLAGS; do \\\n\t  case $$f in \\\n\t    *=* | --[!k]*);; \\\n\t    *k*) failcom='fail=yes';; \\\n\t  esac; \\\n\tdone; \\\n\tdot_seen=no; \\\n\tcase \"$@\" in \\\n\t  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \\\n\t  *) list='$(SUBDIRS)' ;; \\\n\tesac; \\\n\trev=''; for subdir in $$list; do \\\n\t  if test \"$$subdir\" = \".\"; then :; else \\\n\t    rev=\"$$subdir $$rev\"; \\\n\t  fi; \\\n\tdone; \\\n\trev=\"$$rev .\"; \\\n\ttarget=`echo $@ | sed s/-recursive//`; \\\n\tfor subdir in $$rev; do \\\n\t  echo \"Making $$target in $$subdir\"; \\\n\t  if test \"$$subdir\" = \".\"; then \\\n\t    local_target=\"$$target-am\"; \\\n\t  else \\\n\t    local_target=\"$$target\"; \\\n\t  fi; \\\n\t  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \\\n\t  || eval $$failcom; \\\n\tdone && test -z \"$$fail\"\ntags-recursive:\n\tlist='$(SUBDIRS)'; for subdir in $$list; do \\\n\t  test \"$$subdir\" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \\\n\tdone\nctags-recursive:\n\tlist='$(SUBDIRS)'; for subdir in $$list; do \\\n\t  test \"$$subdir\" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \\\n\tdone\n\nID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)\n\tlist='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\tmkid -fID $$unique\ntags: TAGS\n\nTAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \\\n\t\t$(TAGS_FILES) $(LISP)\n\tset x; \\\n\there=`pwd`; \\\n\tif ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \\\n\t  include_option=--etags-include; \\\n\t  empty_fix=.; \\\n\telse \\\n\t  include_option=--include; \\\n\t  empty_fix=; \\\n\tfi; \\\n\tlist='$(SUBDIRS)'; for subdir in $$list; do \\\n\t  if test \"$$subdir\" = .; then :; else \\\n\t    test ! -f $$subdir/TAGS || \\\n\t      set \"$$@\" \"$$include_option=$$here/$$subdir/TAGS\"; \\\n\t  fi; \\\n\tdone; \\\n\tlist='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\tshift; \\\n\tif test -z \"$(ETAGS_ARGS)$$*$$unique\"; then :; else \\\n\t  test -n \"$$unique\" || unique=$$empty_fix; \\\n\t  if test $$# -gt 0; then \\\n\t    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \\\n\t      \"$$@\" $$unique; \\\n\t  else \\\n\t    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \\\n\t      $$unique; \\\n\t  fi; \\\n\tfi\nctags: CTAGS\nCTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \\\n\t\t$(TAGS_FILES) $(LISP)\n\tlist='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\ttest -z \"$(CTAGS_ARGS)$$unique\" \\\n\t  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \\\n\t     $$unique\n\nGTAGS:\n\there=`$(am__cd) $(top_builddir) && pwd` \\\n\t  && $(am__cd) $(top_srcdir) \\\n\t  && gtags -i $(GTAGS_ARGS) \"$$here\"\n\ndistclean-tags:\n\t-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags\n\ndistdir: $(DISTFILES)\n\t$(am__remove_distdir)\n\ttest -d \"$(distdir)\" || mkdir \"$(distdir)\"\n\t@srcdirstrip=`echo \"$(srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\ttopsrcdirstrip=`echo \"$(top_srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\tlist='$(DISTFILES)'; \\\n\t  dist_files=`for file in $$list; do echo $$file; done | \\\n\t  sed -e \"s|^$$srcdirstrip/||;t\" \\\n\t      -e \"s|^$$topsrcdirstrip/|$(top_builddir)/|;t\"`; \\\n\tcase $$dist_files in \\\n\t  */*) $(MKDIR_P) `echo \"$$dist_files\" | \\\n\t\t\t   sed '/\\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \\\n\t\t\t   sort -u` ;; \\\n\tesac; \\\n\tfor file in $$dist_files; do \\\n\t  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \\\n\t  if test -d $$d/$$file; then \\\n\t    dir=`echo \"/$$file\" | sed -e 's,/[^/]*$$,,'`; \\\n\t    if test -d \"$(distdir)/$$file\"; then \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \\\n\t      cp -fpR $(srcdir)/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    cp -fpR $$d/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t  else \\\n\t    test -f \"$(distdir)/$$file\" \\\n\t    || cp -p $$d/$$file \"$(distdir)/$$file\" \\\n\t    || exit 1; \\\n\t  fi; \\\n\tdone\n\t@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \\\n\t  if test \"$$subdir\" = .; then :; else \\\n\t    $(am__make_dryrun) \\\n\t      || test -d \"$(distdir)/$$subdir\" \\\n\t      || $(MKDIR_P) \"$(distdir)/$$subdir\" \\\n\t      || exit 1; \\\n\t    dir1=$$subdir; dir2=\"$(distdir)/$$subdir\"; \\\n\t    $(am__relativize); \\\n\t    new_distdir=$$reldir; \\\n\t    dir1=$$subdir; dir2=\"$(top_distdir)\"; \\\n\t    $(am__relativize); \\\n\t    new_top_distdir=$$reldir; \\\n\t    echo \" (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=\"$$new_top_distdir\" distdir=\"$$new_distdir\" \\\\\"; \\\n\t    echo \"     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)\"; \\\n\t    ($(am__cd) $$subdir && \\\n\t      $(MAKE) $(AM_MAKEFLAGS) \\\n\t        top_distdir=\"$$new_top_distdir\" \\\n\t        distdir=\"$$new_distdir\" \\\n\t\tam__remove_distdir=: \\\n\t\tam__skip_length_check=: \\\n\t\tam__skip_mode_fix=: \\\n\t        distdir) \\\n\t      || exit 1; \\\n\t  fi; \\\n\tdone\n\t-test -n \"$(am__skip_mode_fix)\" \\\n\t|| find \"$(distdir)\" -type d ! -perm -755 \\\n\t\t-exec chmod u+rwx,go+rx {} \\; -o \\\n\t  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \\; -o \\\n\t  ! -type d ! -perm -400 -exec chmod a+r {} \\; -o \\\n\t  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \\; \\\n\t|| chmod -R a+r \"$(distdir)\"\ndist-gzip: distdir\n\ttardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz\n\t$(am__remove_distdir)\n\ndist-bzip2: distdir\n\ttardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2\n\t$(am__remove_distdir)\n\ndist-lzip: distdir\n\ttardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz\n\t$(am__remove_distdir)\n\ndist-lzma: distdir\n\ttardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma\n\t$(am__remove_distdir)\n\ndist-xz: distdir\n\ttardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz\n\t$(am__remove_distdir)\n\ndist-tarZ: distdir\n\ttardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z\n\t$(am__remove_distdir)\n\ndist-shar: distdir\n\tshar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz\n\t$(am__remove_distdir)\n\ndist-zip: distdir\n\t-rm -f $(distdir).zip\n\tzip -rq $(distdir).zip $(distdir)\n\t$(am__remove_distdir)\n\ndist dist-all: distdir\n\ttardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz\n\t$(am__remove_distdir)\n\n# This target untars the dist file and tries a VPATH configuration.  Then\n# it guarantees that the distribution is self-contained by making another\n# tarfile.\ndistcheck: dist\n\tcase '$(DIST_ARCHIVES)' in \\\n\t*.tar.gz*) \\\n\t  GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\\\n\t*.tar.bz2*) \\\n\t  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\\\n\t*.tar.lzma*) \\\n\t  lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\\\n\t*.tar.lz*) \\\n\t  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\\\n\t*.tar.xz*) \\\n\t  xz -dc $(distdir).tar.xz | $(am__untar) ;;\\\n\t*.tar.Z*) \\\n\t  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\\\n\t*.shar.gz*) \\\n\t  GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\\\n\t*.zip*) \\\n\t  unzip $(distdir).zip ;;\\\n\tesac\n\tchmod -R a-w $(distdir); chmod u+w $(distdir)\n\tmkdir $(distdir)/_build\n\tmkdir $(distdir)/_inst\n\tchmod a-w $(distdir)\n\ttest -d $(distdir)/_build || exit 0; \\\n\tdc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\\\/]:[\\\\/],/,'` \\\n\t  && dc_destdir=\"$${TMPDIR-/tmp}/am-dc-$$$$/\" \\\n\t  && am__cwd=`pwd` \\\n\t  && $(am__cd) $(distdir)/_build \\\n\t  && ../configure --srcdir=.. --prefix=\"$$dc_install_base\" \\\n\t    $(AM_DISTCHECK_CONFIGURE_FLAGS) \\\n\t    $(DISTCHECK_CONFIGURE_FLAGS) \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) dvi \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) check \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) install \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) installcheck \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) uninstall \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir=\"$$dc_install_base\" \\\n\t        distuninstallcheck \\\n\t  && chmod -R a-w \"$$dc_install_base\" \\\n\t  && ({ \\\n\t       (cd ../.. && umask 077 && mkdir \"$$dc_destdir\") \\\n\t       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=\"$$dc_destdir\" install \\\n\t       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=\"$$dc_destdir\" uninstall \\\n\t       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=\"$$dc_destdir\" \\\n\t            distuninstallcheck_dir=\"$$dc_destdir\" distuninstallcheck; \\\n\t      } || { rm -rf \"$$dc_destdir\"; exit 1; }) \\\n\t  && rm -rf \"$$dc_destdir\" \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) dist \\\n\t  && rm -rf $(DIST_ARCHIVES) \\\n\t  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \\\n\t  && cd \"$$am__cwd\" \\\n\t  || exit 1\n\t$(am__remove_distdir)\n\t@(echo \"$(distdir) archives ready for distribution: \"; \\\n\t  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \\\n\t  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'\ndistuninstallcheck:\n\t@test -n '$(distuninstallcheck_dir)' || { \\\n\t  echo 'ERROR: trying to run $@ with an empty' \\\n\t       '$$(distuninstallcheck_dir)' >&2; \\\n\t  exit 1; \\\n\t}; \\\n\t$(am__cd) '$(distuninstallcheck_dir)' || { \\\n\t  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \\\n\t  exit 1; \\\n\t}; \\\n\ttest `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \\\n\t   || { echo \"ERROR: files left after uninstall:\" ; \\\n\t        if test -n \"$(DESTDIR)\"; then \\\n\t          echo \"  (check DESTDIR support)\"; \\\n\t        fi ; \\\n\t        $(distuninstallcheck_listfiles) ; \\\n\t        exit 1; } >&2\ndistcleancheck: distclean\n\t@if test '$(srcdir)' = . ; then \\\n\t  echo \"ERROR: distcleancheck can only run from a VPATH build\" ; \\\n\t  exit 1 ; \\\n\tfi\n\t@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \\\n\t  || { echo \"ERROR: files left in build directory after distclean:\" ; \\\n\t       $(distcleancheck_listfiles) ; \\\n\t       exit 1; } >&2\ncheck-am: all-am\ncheck: check-recursive\nall-am: Makefile config.h\ninstalldirs: installdirs-recursive\ninstalldirs-am:\ninstall: install-recursive\ninstall-exec: install-exec-recursive\ninstall-data: install-data-recursive\nuninstall: uninstall-recursive\n\ninstall-am: all-am\n\t@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am\n\ninstallcheck: installcheck-recursive\ninstall-strip:\n\tif test -z '$(STRIP)'; then \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t      install; \\\n\telse \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t    \"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'\" install; \\\n\tfi\nmostlyclean-generic:\n\nclean-generic:\n\ndistclean-generic:\n\t-test -z \"$(CONFIG_CLEAN_FILES)\" || rm -f $(CONFIG_CLEAN_FILES)\n\t-test . = \"$(srcdir)\" || test -z \"$(CONFIG_CLEAN_VPATH_FILES)\" || rm -f $(CONFIG_CLEAN_VPATH_FILES)\n\nmaintainer-clean-generic:\n\t@echo \"This command is intended for maintainers to use\"\n\t@echo \"it deletes files that may require special tools to rebuild.\"\nclean: clean-recursive\n\nclean-am: clean-generic mostlyclean-am\n\ndistclean: distclean-recursive\n\t-rm -f $(am__CONFIG_DISTCLEAN_FILES)\n\t-rm -f Makefile\ndistclean-am: clean-am distclean-generic distclean-hdr distclean-tags\n\ndvi: dvi-recursive\n\ndvi-am:\n\nhtml: html-recursive\n\nhtml-am:\n\ninfo: info-recursive\n\ninfo-am:\n\ninstall-data-am:\n\ninstall-dvi: install-dvi-recursive\n\ninstall-dvi-am:\n\ninstall-exec-am:\n\ninstall-html: install-html-recursive\n\ninstall-html-am:\n\ninstall-info: install-info-recursive\n\ninstall-info-am:\n\ninstall-man:\n\ninstall-pdf: install-pdf-recursive\n\ninstall-pdf-am:\n\ninstall-ps: install-ps-recursive\n\ninstall-ps-am:\n\ninstallcheck-am:\n\nmaintainer-clean: maintainer-clean-recursive\n\t-rm -f $(am__CONFIG_DISTCLEAN_FILES)\n\t-rm -rf $(top_srcdir)/autom4te.cache\n\t-rm -f Makefile\nmaintainer-clean-am: distclean-am maintainer-clean-generic\n\nmostlyclean: mostlyclean-recursive\n\nmostlyclean-am: mostlyclean-generic\n\npdf: pdf-recursive\n\npdf-am:\n\nps: ps-recursive\n\nps-am:\n\nuninstall-am:\n\n.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \\\n\tctags-recursive install-am install-strip tags-recursive\n\n.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \\\n\tall all-am am--refresh check check-am clean clean-generic \\\n\tctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \\\n\tdist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \\\n\tdistcheck distclean distclean-generic distclean-hdr \\\n\tdistclean-tags distcleancheck distdir distuninstallcheck dvi \\\n\tdvi-am html html-am info info-am install install-am \\\n\tinstall-data install-data-am install-dvi install-dvi-am \\\n\tinstall-exec install-exec-am install-html install-html-am \\\n\tinstall-info install-info-am install-man install-pdf \\\n\tinstall-pdf-am install-ps install-ps-am install-strip \\\n\tinstallcheck installcheck-am installdirs installdirs-am \\\n\tmaintainer-clean maintainer-clean-generic mostlyclean \\\n\tmostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \\\n\tuninstall uninstall-am\n\n\n# Tell versions [3.59,3.63) of GNU make to not export all variables.\n# Otherwise a system limit (for SysV at least) may be exceeded.\n.NOEXPORT:\n"
  },
  {
    "path": "NEWS",
    "content": "* News in version 1.1.1\nsipcalc-www has been removed, some README for further details.\n\n\n* News in version 1.1.1[-pre-x].\n\nBugfixes.\nSupport for multiple returned records while doing dns resolution.\nVerified MacOSX support.\nFixed the stdin parsing.\n\n"
  },
  {
    "path": "README",
    "content": "Sipcalc is an \"advanced\" console based ip subnet calculator.\n\n** NOTE **\nThe cgi part of sipcalc has been removed in this release.\nI plan on reviving it at a later point, but at this time i don't have\nthe motivation to keep it up to date.\n**\n\nFeatures include:\n- IPv4\n  * Multiple address and netmask input formats.\n  * Retrieving of address information from interfaces.\n  * Classfull and CIDR output.\n  * Multiple address and netmask output formats (dotted quad, hex, number\n    of bits).\n  * Output of broadcast address, network class, Cisco wildcard, hosts/range,\n    network range.\n  * Output of multiple types of bitmaps.\n  * Output of a userdefined number of extra networks.\n  * Multiple networks input from commandline.\n  * Parsing of a newline seperated list of networks from standard input (STDIN).\n  * The ability to \"split\" a network based on a smaller netmask, now also with\n    recursive runs on the generated subnets.\n  * DNS resolution.\n- IPv6\n  * Compressed and expanded input addresses.\n  * Compressed and expanded output.\n  * Standard IPv6 network output.\n  * v4 in v6 output.\n  * Reverse dns address generation.\n  * The ability to \"split\" a network based on a smaller netmask, now also with\n    recursive runs on the generated subnets.\n  * DNS resolution.\n\nSipcalc has been tested on the following platforms.\n  * OpenBSD 3.0 (i386)\n  * OpenBSD 2.8 (i386)\n  * FreeBSD 4.3 (i386)\n  * Compaq Tru64 UNIX V5.0A (Alpha)\n  * Compaq Tru64 UNIX V5.1 (Alpha)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (i386)\n  * Debian GNU/Linux 2.4(?) (Linux kernel 2.4.x) (i386)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (Alpha)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (Sparc - Ultra60)\n  * Sun Solaris (8) (Sparc - R220)\n\nSee doc/sipcalc.txt for a complete description of sipcalc commandline-version\narguments.\n\n\nBuilding.\n\nBuilding sipcalc is as simple as:\n./configure\nmake\nmake install\n\nFurther instructions on using configure can be found in the file INSTALL\nincluded with the sipcalc package.\n\nPlease send any bugreports, feature requests or comments to\nsimon@routemeister.net.\n\nSipcalc can be downloaded from http://www.routemeister.net/\n\n"
  },
  {
    "path": "README.md",
    "content": "Sipcalc is an console based ip subnet calculator with IPv4 and IPv6 support.\n\nSipcalc development started back in 2001 and has most of the features I want\nin an ip calculator. It is no longer under active development, though bugfixes\nand patches are accepted.\n\nSipcalc is available in many Linux/BSD distributions, usually as a package named sipcalc. Release tarballs are available from http://www.routemeister.net/\n\n--\n\nFeatures include:\n- IPv4\n  * Multiple address and netmask input formats.\n  * Retrieving of address information from interfaces.\n  * Classfull and CIDR output.\n  * Multiple address and netmask output formats (dotted quad, hex, number\n    of bits).\n  * Output of broadcast address, network class, Cisco wildcard, hosts/range,\n    network range.\n  * Output of multiple types of bitmaps.\n  * Output of a userdefined number of extra networks.\n  * Multiple networks input from commandline.\n  * Parsing of a newline seperated list of networks from standard input (STDIN).\n  * The ability to \"split\" a network based on a smaller netmask, now also with\n    recursive runs on the generated subnets.\n  * DNS resolution.\n- IPv6\n  * Compressed and expanded input addresses.\n  * Compressed and expanded output.\n  * Standard IPv6 network output.\n  * v4 in v6 output.\n  * Reverse dns address generation.\n  * The ability to \"split\" a network based on a smaller netmask, now also with\n    recursive runs on the generated subnets.\n  * DNS resolution.\n\nSipcalc has been tested on the following platforms.\n  * OpenBSD 3.0 (i386)\n  * OpenBSD 2.8 (i386)\n  * FreeBSD 4.3 (i386)\n  * Compaq Tru64 UNIX V5.0A (Alpha)\n  * Compaq Tru64 UNIX V5.1 (Alpha)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (i386)\n  * Debian GNU/Linux 2.4(?) (Linux kernel 2.4.x) (i386)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (Alpha)\n  * Debian GNU/Linux 2.2 (Linux kernel 2.2.x) (Sparc - Ultra60)\n  * Sun Solaris (8) (Sparc - R220)\n\nSee doc/sipcalc.txt for a complete description of sipcalc commandline-version\narguments.\n"
  },
  {
    "path": "TODO",
    "content": "* Use more OS-specific ways to retrieve interface information so that we\n  can also parse interfaces that aren't handled by the struct ifreq stuff.\n  We probably need this to handle ipv6 interface address information which\n  doesn't work today.\n\n* IPv6 name resolution is untested on Solaris due to lack of a machine to\n  try this on. I'd love to hear from anyone that trys this.\n\n* Same as above for MacOSX.\n\n* Make validate_v4addr, validate_v6addr and validate netmask use the same\n  returncodes.\n\n"
  },
  {
    "path": "aclocal.m4",
    "content": "# generated automatically by aclocal 1.11.6 -*- Autoconf -*-\n\n# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,\n# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,\n# Inc.\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY, to the extent permitted by law; without\n# even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n# PARTICULAR PURPOSE.\n\nm4_ifndef([AC_AUTOCONF_VERSION],\n  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl\nm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,\n[m4_warning([this file was generated for autoconf 2.69.\nYou have another version of autoconf.  It may work, but is not guaranteed to.\nIf you have problems, you may need to regenerate the build system entirely.\nTo do so, use the procedure documented by the package, typically `autoreconf'.])])\n\n# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software\n# Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 1\n\n# AM_AUTOMAKE_VERSION(VERSION)\n# ----------------------------\n# Automake X.Y traces this macro to ensure aclocal.m4 has been\n# generated from the m4 files accompanying Automake X.Y.\n# (This private macro should not be called outside this file.)\nAC_DEFUN([AM_AUTOMAKE_VERSION],\n[am__api_version='1.11'\ndnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to\ndnl require some minimum version.  Point them to the right macro.\nm4_if([$1], [1.11.6], [],\n      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl\n])\n\n# _AM_AUTOCONF_VERSION(VERSION)\n# -----------------------------\n# aclocal traces this macro to find the Autoconf version.\n# This is a private macro too.  Using m4_define simplifies\n# the logic in aclocal, which can simply ignore this definition.\nm4_define([_AM_AUTOCONF_VERSION], [])\n\n# AM_SET_CURRENT_AUTOMAKE_VERSION\n# -------------------------------\n# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.\n# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.\nAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],\n[AM_AUTOMAKE_VERSION([1.11.6])dnl\nm4_ifndef([AC_AUTOCONF_VERSION],\n  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl\n_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])\n\n# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-\n\n# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 1\n\n# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets\n# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to\n# `$srcdir', `$srcdir/..', or `$srcdir/../..'.\n#\n# Of course, Automake must honor this variable whenever it calls a\n# tool from the auxiliary directory.  The problem is that $srcdir (and\n# therefore $ac_aux_dir as well) can be either absolute or relative,\n# depending on how configure is run.  This is pretty annoying, since\n# it makes $ac_aux_dir quite unusable in subdirectories: in the top\n# source directory, any form will work fine, but in subdirectories a\n# relative path needs to be adjusted first.\n#\n# $ac_aux_dir/missing\n#    fails when called from a subdirectory if $ac_aux_dir is relative\n# $top_srcdir/$ac_aux_dir/missing\n#    fails if $ac_aux_dir is absolute,\n#    fails when called from a subdirectory in a VPATH build with\n#          a relative $ac_aux_dir\n#\n# The reason of the latter failure is that $top_srcdir and $ac_aux_dir\n# are both prefixed by $srcdir.  In an in-source build this is usually\n# harmless because $srcdir is `.', but things will broke when you\n# start a VPATH build or use an absolute $srcdir.\n#\n# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,\n# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:\n#   am_aux_dir='\\$(top_srcdir)/'`expr \"$ac_aux_dir\" : \"$srcdir//*\\(.*\\)\"`\n# and then we would define $MISSING as\n#   MISSING=\"\\${SHELL} $am_aux_dir/missing\"\n# This will work as long as MISSING is not called from configure, because\n# unfortunately $(top_srcdir) has no meaning in configure.\n# However there are other variables, like CC, which are often used in\n# configure, and could therefore not use this \"fixed\" $ac_aux_dir.\n#\n# Another solution, used here, is to always expand $ac_aux_dir to an\n# absolute PATH.  The drawback is that using absolute paths prevent a\n# configured tree to be moved without reconfiguration.\n\nAC_DEFUN([AM_AUX_DIR_EXPAND],\n[dnl Rely on autoconf to set up CDPATH properly.\nAC_PREREQ([2.50])dnl\n# expand $ac_aux_dir to an absolute path\nam_aux_dir=`cd $ac_aux_dir && pwd`\n])\n\n# AM_CONDITIONAL                                            -*- Autoconf -*-\n\n# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008\n# Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 9\n\n# AM_CONDITIONAL(NAME, SHELL-CONDITION)\n# -------------------------------------\n# Define a conditional.\nAC_DEFUN([AM_CONDITIONAL],\n[AC_PREREQ(2.52)dnl\n ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],\n\t[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl\nAC_SUBST([$1_TRUE])dnl\nAC_SUBST([$1_FALSE])dnl\n_AM_SUBST_NOTMAKE([$1_TRUE])dnl\n_AM_SUBST_NOTMAKE([$1_FALSE])dnl\nm4_define([_AM_COND_VALUE_$1], [$2])dnl\nif $2; then\n  $1_TRUE=\n  $1_FALSE='#'\nelse\n  $1_TRUE='#'\n  $1_FALSE=\nfi\nAC_CONFIG_COMMANDS_PRE(\n[if test -z \"${$1_TRUE}\" && test -z \"${$1_FALSE}\"; then\n  AC_MSG_ERROR([[conditional \"$1\" was never defined.\nUsually this means the macro was only invoked conditionally.]])\nfi])])\n\n# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,\n# 2010, 2011 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 12\n\n# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be\n# written in clear, in which case automake, when reading aclocal.m4,\n# will think it sees a *use*, and therefore will trigger all it's\n# C support machinery.  Also note that it means that autoscan, seeing\n# CC etc. in the Makefile, will ask for an AC_PROG_CC use...\n\n\n# _AM_DEPENDENCIES(NAME)\n# ----------------------\n# See how the compiler implements dependency checking.\n# NAME is \"CC\", \"CXX\", \"GCJ\", or \"OBJC\".\n# We try a few techniques and use that to set a single cache variable.\n#\n# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was\n# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular\n# dependency, and given that the user is not expected to run this macro,\n# just rely on AC_PROG_CC.\nAC_DEFUN([_AM_DEPENDENCIES],\n[AC_REQUIRE([AM_SET_DEPDIR])dnl\nAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl\nAC_REQUIRE([AM_MAKE_INCLUDE])dnl\nAC_REQUIRE([AM_DEP_TRACK])dnl\n\nifelse([$1], CC,   [depcc=\"$CC\"   am_compiler_list=],\n       [$1], CXX,  [depcc=\"$CXX\"  am_compiler_list=],\n       [$1], OBJC, [depcc=\"$OBJC\" am_compiler_list='gcc3 gcc'],\n       [$1], UPC,  [depcc=\"$UPC\"  am_compiler_list=],\n       [$1], GCJ,  [depcc=\"$GCJ\"  am_compiler_list='gcc3 gcc'],\n                   [depcc=\"$$1\"   am_compiler_list=])\n\nAC_CACHE_CHECK([dependency style of $depcc],\n               [am_cv_$1_dependencies_compiler_type],\n[if test -z \"$AMDEP_TRUE\" && test -f \"$am_depcomp\"; then\n  # We make a subdir and do the tests there.  Otherwise we can end up\n  # making bogus files that we don't know about and never remove.  For\n  # instance it was reported that on HP-UX the gcc test will end up\n  # making a dummy file named `D' -- because `-MD' means `put the output\n  # in D'.\n  rm -rf conftest.dir\n  mkdir conftest.dir\n  # Copy depcomp to subdir because otherwise we won't find it if we're\n  # using a relative directory.\n  cp \"$am_depcomp\" conftest.dir\n  cd conftest.dir\n  # We will build objects and dependencies in a subdirectory because\n  # it helps to detect inapplicable dependency modes.  For instance\n  # both Tru64's cc and ICC support -MD to output dependencies as a\n  # side effect of compilation, but ICC will put the dependencies in\n  # the current directory while Tru64 will put them in the object\n  # directory.\n  mkdir sub\n\n  am_cv_$1_dependencies_compiler_type=none\n  if test \"$am_compiler_list\" = \"\"; then\n     am_compiler_list=`sed -n ['s/^#*\\([a-zA-Z0-9]*\\))$/\\1/p'] < ./depcomp`\n  fi\n  am__universal=false\n  m4_case([$1], [CC],\n    [case \" $depcc \" in #(\n     *\\ -arch\\ *\\ -arch\\ *) am__universal=true ;;\n     esac],\n    [CXX],\n    [case \" $depcc \" in #(\n     *\\ -arch\\ *\\ -arch\\ *) am__universal=true ;;\n     esac])\n\n  for depmode in $am_compiler_list; do\n    # Setup a source with many dependencies, because some compilers\n    # like to wrap large dependency lists on column 80 (with \\), and\n    # we should not choose a depcomp mode which is confused by this.\n    #\n    # We need to recreate these files for each test, as the compiler may\n    # overwrite some of them when testing with obscure command lines.\n    # This happens at least with the AIX C compiler.\n    : > sub/conftest.c\n    for i in 1 2 3 4 5 6; do\n      echo '#include \"conftst'$i'.h\"' >> sub/conftest.c\n      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with\n      # Solaris 8's {/usr,}/bin/sh.\n      touch sub/conftst$i.h\n    done\n    echo \"${am__include} ${am__quote}sub/conftest.Po${am__quote}\" > confmf\n\n    # We check with `-c' and `-o' for the sake of the \"dashmstdout\"\n    # mode.  It turns out that the SunPro C++ compiler does not properly\n    # handle `-M -o', and we need to detect this.  Also, some Intel\n    # versions had trouble with output in subdirs\n    am__obj=sub/conftest.${OBJEXT-o}\n    am__minus_obj=\"-o $am__obj\"\n    case $depmode in\n    gcc)\n      # This depmode causes a compiler race in universal mode.\n      test \"$am__universal\" = false || continue\n      ;;\n    nosideeffect)\n      # after this tag, mechanisms are not by side-effect, so they'll\n      # only be used when explicitly requested\n      if test \"x$enable_dependency_tracking\" = xyes; then\n\tcontinue\n      else\n\tbreak\n      fi\n      ;;\n    msvc7 | msvc7msys | msvisualcpp | msvcmsys)\n      # This compiler won't grok `-c -o', but also, the minuso test has\n      # not run yet.  These depmodes are late enough in the game, and\n      # so weak that their functioning should not be impacted.\n      am__obj=conftest.${OBJEXT-o}\n      am__minus_obj=\n      ;;\n    none) break ;;\n    esac\n    if depmode=$depmode \\\n       source=sub/conftest.c object=$am__obj \\\n       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \\\n       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \\\n         >/dev/null 2>conftest.err &&\n       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&\n       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&\n       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&\n       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then\n      # icc doesn't choke on unknown options, it will just issue warnings\n      # or remarks (even with -Werror).  So we grep stderr for any message\n      # that says an option was ignored or not supported.\n      # When given -MP, icc 7.0 and 7.1 complain thusly:\n      #   icc: Command line warning: ignoring option '-M'; no argument required\n      # The diagnosis changed in icc 8.0:\n      #   icc: Command line remark: option '-MP' not supported\n      if (grep 'ignoring option' conftest.err ||\n          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else\n        am_cv_$1_dependencies_compiler_type=$depmode\n        break\n      fi\n    fi\n  done\n\n  cd ..\n  rm -rf conftest.dir\nelse\n  am_cv_$1_dependencies_compiler_type=none\nfi\n])\nAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])\nAM_CONDITIONAL([am__fastdep$1], [\n  test \"x$enable_dependency_tracking\" != xno \\\n  && test \"$am_cv_$1_dependencies_compiler_type\" = gcc3])\n])\n\n\n# AM_SET_DEPDIR\n# -------------\n# Choose a directory name for dependency files.\n# This macro is AC_REQUIREd in _AM_DEPENDENCIES\nAC_DEFUN([AM_SET_DEPDIR],\n[AC_REQUIRE([AM_SET_LEADING_DOT])dnl\nAC_SUBST([DEPDIR], [\"${am__leading_dot}deps\"])dnl\n])\n\n\n# AM_DEP_TRACK\n# ------------\nAC_DEFUN([AM_DEP_TRACK],\n[AC_ARG_ENABLE(dependency-tracking,\n[  --disable-dependency-tracking  speeds up one-time build\n  --enable-dependency-tracking   do not reject slow dependency extractors])\nif test \"x$enable_dependency_tracking\" != xno; then\n  am_depcomp=\"$ac_aux_dir/depcomp\"\n  AMDEPBACKSLASH='\\'\n  am__nodep='_no'\nfi\nAM_CONDITIONAL([AMDEP], [test \"x$enable_dependency_tracking\" != xno])\nAC_SUBST([AMDEPBACKSLASH])dnl\n_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl\nAC_SUBST([am__nodep])dnl\n_AM_SUBST_NOTMAKE([am__nodep])dnl\n])\n\n# Generate code to set up dependency tracking.              -*- Autoconf -*-\n\n# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008\n# Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n#serial 5\n\n# _AM_OUTPUT_DEPENDENCY_COMMANDS\n# ------------------------------\nAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],\n[{\n  # Autoconf 2.62 quotes --file arguments for eval, but not when files\n  # are listed without --file.  Let's play safe and only enable the eval\n  # if we detect the quoting.\n  case $CONFIG_FILES in\n  *\\'*) eval set x \"$CONFIG_FILES\" ;;\n  *)   set x $CONFIG_FILES ;;\n  esac\n  shift\n  for mf\n  do\n    # Strip MF so we end up with the name of the file.\n    mf=`echo \"$mf\" | sed -e 's/:.*$//'`\n    # Check whether this is an Automake generated Makefile or not.\n    # We used to match only the files named `Makefile.in', but\n    # some people rename them; so instead we look at the file content.\n    # Grep'ing the first line is not enough: some people post-process\n    # each Makefile.in and add a new line on top of each file to say so.\n    # Grep'ing the whole file is not good either: AIX grep has a line\n    # limit of 2048, but all sed's we know have understand at least 4000.\n    if sed -n 's,^#.*generated by automake.*,X,p' \"$mf\" | grep X >/dev/null 2>&1; then\n      dirpart=`AS_DIRNAME(\"$mf\")`\n    else\n      continue\n    fi\n    # Extract the definition of DEPDIR, am__include, and am__quote\n    # from the Makefile without running `make'.\n    DEPDIR=`sed -n 's/^DEPDIR = //p' < \"$mf\"`\n    test -z \"$DEPDIR\" && continue\n    am__include=`sed -n 's/^am__include = //p' < \"$mf\"`\n    test -z \"am__include\" && continue\n    am__quote=`sed -n 's/^am__quote = //p' < \"$mf\"`\n    # When using ansi2knr, U may be empty or an underscore; expand it\n    U=`sed -n 's/^U = //p' < \"$mf\"`\n    # Find all dependency output files, they are included files with\n    # $(DEPDIR) in their names.  We invoke sed twice because it is the\n    # simplest approach to changing $(DEPDIR) to its actual value in the\n    # expansion.\n    for file in `sed -n \"\n      s/^$am__include $am__quote\\(.*(DEPDIR).*\\)$am__quote\"'$/\\1/p' <\"$mf\" | \\\n\t sed -e 's/\\$(DEPDIR)/'\"$DEPDIR\"'/g' -e 's/\\$U/'\"$U\"'/g'`; do\n      # Make sure the directory exists.\n      test -f \"$dirpart/$file\" && continue\n      fdir=`AS_DIRNAME([\"$file\"])`\n      AS_MKDIR_P([$dirpart/$fdir])\n      # echo \"creating $dirpart/$file\"\n      echo '# dummy' > \"$dirpart/$file\"\n    done\n  done\n}\n])# _AM_OUTPUT_DEPENDENCY_COMMANDS\n\n\n# AM_OUTPUT_DEPENDENCY_COMMANDS\n# -----------------------------\n# This macro should only be invoked once -- use via AC_REQUIRE.\n#\n# This code is only required when automatic dependency tracking\n# is enabled.  FIXME.  This creates each `.P' file that we will\n# need in order to bootstrap the dependency handling code.\nAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],\n[AC_CONFIG_COMMANDS([depfiles],\n     [test x\"$AMDEP_TRUE\" != x\"\" || _AM_OUTPUT_DEPENDENCY_COMMANDS],\n     [AMDEP_TRUE=\"$AMDEP_TRUE\" ac_aux_dir=\"$ac_aux_dir\"])\n])\n\n# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005\n# Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 8\n\n# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.\nAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])\n\n# Do all the work for Automake.                             -*- Autoconf -*-\n\n# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,\n# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 16\n\n# This macro actually does too much.  Some checks are only needed if\n# your package does certain things.  But this isn't really a big deal.\n\n# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])\n# AM_INIT_AUTOMAKE([OPTIONS])\n# -----------------------------------------------\n# The call with PACKAGE and VERSION arguments is the old style\n# call (pre autoconf-2.50), which is being phased out.  PACKAGE\n# and VERSION should now be passed to AC_INIT and removed from\n# the call to AM_INIT_AUTOMAKE.\n# We support both call styles for the transition.  After\n# the next Automake release, Autoconf can make the AC_INIT\n# arguments mandatory, and then we can depend on a new Autoconf\n# release and drop the old call support.\nAC_DEFUN([AM_INIT_AUTOMAKE],\n[AC_PREREQ([2.62])dnl\ndnl Autoconf wants to disallow AM_ names.  We explicitly allow\ndnl the ones we care about.\nm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl\nAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl\nAC_REQUIRE([AC_PROG_INSTALL])dnl\nif test \"`cd $srcdir && pwd`\" != \"`pwd`\"; then\n  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output\n  # is not polluted with repeated \"-I.\"\n  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl\n  # test to see if srcdir already configured\n  if test -f $srcdir/config.status; then\n    AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])\n  fi\nfi\n\n# test whether we have cygpath\nif test -z \"$CYGPATH_W\"; then\n  if (cygpath --version) >/dev/null 2>/dev/null; then\n    CYGPATH_W='cygpath -w'\n  else\n    CYGPATH_W=echo\n  fi\nfi\nAC_SUBST([CYGPATH_W])\n\n# Define the identity of the package.\ndnl Distinguish between old-style and new-style calls.\nm4_ifval([$2],\n[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl\n AC_SUBST([PACKAGE], [$1])dnl\n AC_SUBST([VERSION], [$2])],\n[_AM_SET_OPTIONS([$1])dnl\ndnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.\nm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,\n  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl\n AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl\n AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl\n\n_AM_IF_OPTION([no-define],,\n[AC_DEFINE_UNQUOTED(PACKAGE, \"$PACKAGE\", [Name of package])\n AC_DEFINE_UNQUOTED(VERSION, \"$VERSION\", [Version number of package])])dnl\n\n# Some tools Automake needs.\nAC_REQUIRE([AM_SANITY_CHECK])dnl\nAC_REQUIRE([AC_ARG_PROGRAM])dnl\nAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})\nAM_MISSING_PROG(AUTOCONF, autoconf)\nAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})\nAM_MISSING_PROG(AUTOHEADER, autoheader)\nAM_MISSING_PROG(MAKEINFO, makeinfo)\nAC_REQUIRE([AM_PROG_INSTALL_SH])dnl\nAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl\nAC_REQUIRE([AM_PROG_MKDIR_P])dnl\n# We need awk for the \"check\" target.  The system \"awk\" is bad on\n# some platforms.\nAC_REQUIRE([AC_PROG_AWK])dnl\nAC_REQUIRE([AC_PROG_MAKE_SET])dnl\nAC_REQUIRE([AM_SET_LEADING_DOT])dnl\n_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],\n\t      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],\n\t\t\t     [_AM_PROG_TAR([v7])])])\n_AM_IF_OPTION([no-dependencies],,\n[AC_PROVIDE_IFELSE([AC_PROG_CC],\n\t\t  [_AM_DEPENDENCIES(CC)],\n\t\t  [define([AC_PROG_CC],\n\t\t\t  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl\nAC_PROVIDE_IFELSE([AC_PROG_CXX],\n\t\t  [_AM_DEPENDENCIES(CXX)],\n\t\t  [define([AC_PROG_CXX],\n\t\t\t  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl\nAC_PROVIDE_IFELSE([AC_PROG_OBJC],\n\t\t  [_AM_DEPENDENCIES(OBJC)],\n\t\t  [define([AC_PROG_OBJC],\n\t\t\t  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl\n])\n_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl\ndnl The `parallel-tests' driver may need to know about EXEEXT, so add the\ndnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro\ndnl is hooked onto _AC_COMPILER_EXEEXT early, see below.\nAC_CONFIG_COMMANDS_PRE(dnl\n[m4_provide_if([_AM_COMPILER_EXEEXT],\n  [AM_CONDITIONAL([am__EXEEXT], [test -n \"$EXEEXT\"])])])dnl\n])\n\ndnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not\ndnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further\ndnl mangled by Autoconf and run in a shell conditional statement.\nm4_define([_AC_COMPILER_EXEEXT],\nm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])\n\n\n# When config.status generates a header, we must update the stamp-h file.\n# This file resides in the same directory as the config header\n# that is generated.  The stamp files are numbered to have different names.\n\n# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the\n# loop where config.status creates the headers, so we can generate\n# our stamp files there.\nAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],\n[# Compute $1's index in $config_headers.\n_am_arg=$1\n_am_stamp_count=1\nfor _am_header in $config_headers :; do\n  case $_am_header in\n    $_am_arg | $_am_arg:* )\n      break ;;\n    * )\n      _am_stamp_count=`expr $_am_stamp_count + 1` ;;\n  esac\ndone\necho \"timestamp for $_am_arg\" >`AS_DIRNAME([\"$_am_arg\"])`/stamp-h[]$_am_stamp_count])\n\n# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,\n# Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 1\n\n# AM_PROG_INSTALL_SH\n# ------------------\n# Define $install_sh.\nAC_DEFUN([AM_PROG_INSTALL_SH],\n[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl\nif test x\"${install_sh}\" != xset; then\n  case $am_aux_dir in\n  *\\ * | *\\\t*)\n    install_sh=\"\\${SHELL} '$am_aux_dir/install-sh'\" ;;\n  *)\n    install_sh=\"\\${SHELL} $am_aux_dir/install-sh\"\n  esac\nfi\nAC_SUBST(install_sh)])\n\n# Copyright (C) 2003, 2005  Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 2\n\n# Check whether the underlying file-system supports filenames\n# with a leading dot.  For instance MS-DOS doesn't.\nAC_DEFUN([AM_SET_LEADING_DOT],\n[rm -rf .tst 2>/dev/null\nmkdir .tst 2>/dev/null\nif test -d .tst; then\n  am__leading_dot=.\nelse\n  am__leading_dot=_\nfi\nrmdir .tst 2>/dev/null\nAC_SUBST([am__leading_dot])])\n\n# Check to see how 'make' treats includes.\t            -*- Autoconf -*-\n\n# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 4\n\n# AM_MAKE_INCLUDE()\n# -----------------\n# Check to see how make treats includes.\nAC_DEFUN([AM_MAKE_INCLUDE],\n[am_make=${MAKE-make}\ncat > confinc << 'END'\nam__doit:\n\t@echo this is the am__doit target\n.PHONY: am__doit\nEND\n# If we don't find an include directive, just comment out the code.\nAC_MSG_CHECKING([for style of include used by $am_make])\nam__include=\"#\"\nam__quote=\n_am_result=none\n# First try GNU make style include.\necho \"include confinc\" > confmf\n# Ignore all kinds of additional output from `make'.\ncase `$am_make -s -f confmf 2> /dev/null` in #(\n*the\\ am__doit\\ target*)\n  am__include=include\n  am__quote=\n  _am_result=GNU\n  ;;\nesac\n# Now try BSD make style include.\nif test \"$am__include\" = \"#\"; then\n   echo '.include \"confinc\"' > confmf\n   case `$am_make -s -f confmf 2> /dev/null` in #(\n   *the\\ am__doit\\ target*)\n     am__include=.include\n     am__quote=\"\\\"\"\n     _am_result=BSD\n     ;;\n   esac\nfi\nAC_SUBST([am__include])\nAC_SUBST([am__quote])\nAC_MSG_RESULT([$_am_result])\nrm -f confinc confmf\n])\n\n# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-\n\n# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008\n# Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 6\n\n# AM_MISSING_PROG(NAME, PROGRAM)\n# ------------------------------\nAC_DEFUN([AM_MISSING_PROG],\n[AC_REQUIRE([AM_MISSING_HAS_RUN])\n$1=${$1-\"${am_missing_run}$2\"}\nAC_SUBST($1)])\n\n\n# AM_MISSING_HAS_RUN\n# ------------------\n# Define MISSING if not defined so far and test if it supports --run.\n# If it does, set am_missing_run to use it, otherwise, to nothing.\nAC_DEFUN([AM_MISSING_HAS_RUN],\n[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl\nAC_REQUIRE_AUX_FILE([missing])dnl\nif test x\"${MISSING+set}\" != xset; then\n  case $am_aux_dir in\n  *\\ * | *\\\t*)\n    MISSING=\"\\${SHELL} \\\"$am_aux_dir/missing\\\"\" ;;\n  *)\n    MISSING=\"\\${SHELL} $am_aux_dir/missing\" ;;\n  esac\nfi\n# Use eval to expand $SHELL\nif eval \"$MISSING --run true\"; then\n  am_missing_run=\"$MISSING --run \"\nelse\n  am_missing_run=\n  AC_MSG_WARN([`missing' script is too old or missing])\nfi\n])\n\n# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,\n# Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 1\n\n# AM_PROG_MKDIR_P\n# ---------------\n# Check for `mkdir -p'.\nAC_DEFUN([AM_PROG_MKDIR_P],\n[AC_PREREQ([2.60])dnl\nAC_REQUIRE([AC_PROG_MKDIR_P])dnl\ndnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,\ndnl while keeping a definition of mkdir_p for backward compatibility.\ndnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.\ndnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of\ndnl Makefile.ins that do not define MKDIR_P, so we do our own\ndnl adjustment using top_builddir (which is defined more often than\ndnl MKDIR_P).\nAC_SUBST([mkdir_p], [\"$MKDIR_P\"])dnl\ncase $mkdir_p in\n  [[\\\\/$]]* | ?:[[\\\\/]]*) ;;\n  */*) mkdir_p=\"\\$(top_builddir)/$mkdir_p\" ;;\nesac\n])\n\n# Helper functions for option handling.                     -*- Autoconf -*-\n\n# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software\n# Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 5\n\n# _AM_MANGLE_OPTION(NAME)\n# -----------------------\nAC_DEFUN([_AM_MANGLE_OPTION],\n[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])\n\n# _AM_SET_OPTION(NAME)\n# --------------------\n# Set option NAME.  Presently that only means defining a flag for this option.\nAC_DEFUN([_AM_SET_OPTION],\n[m4_define(_AM_MANGLE_OPTION([$1]), 1)])\n\n# _AM_SET_OPTIONS(OPTIONS)\n# ------------------------\n# OPTIONS is a space-separated list of Automake options.\nAC_DEFUN([_AM_SET_OPTIONS],\n[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])\n\n# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])\n# -------------------------------------------\n# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.\nAC_DEFUN([_AM_IF_OPTION],\n[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])\n\n# Check to make sure that the build environment is sane.    -*- Autoconf -*-\n\n# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008\n# Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 5\n\n# AM_SANITY_CHECK\n# ---------------\nAC_DEFUN([AM_SANITY_CHECK],\n[AC_MSG_CHECKING([whether build environment is sane])\n# Just in case\nsleep 1\necho timestamp > conftest.file\n# Reject unsafe characters in $srcdir or the absolute working directory\n# name.  Accept space and tab only in the latter.\nam_lf='\n'\ncase `pwd` in\n  *[[\\\\\\\"\\#\\$\\&\\'\\`$am_lf]]*)\n    AC_MSG_ERROR([unsafe absolute working directory name]);;\nesac\ncase $srcdir in\n  *[[\\\\\\\"\\#\\$\\&\\'\\`$am_lf\\ \\\t]]*)\n    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;\nesac\n\n# Do `set' in a subshell so we don't clobber the current shell's\n# arguments.  Must try -L first in case configure is actually a\n# symlink; some systems play weird games with the mod time of symlinks\n# (eg FreeBSD returns the mod time of the symlink's containing\n# directory).\nif (\n   set X `ls -Lt \"$srcdir/configure\" conftest.file 2> /dev/null`\n   if test \"$[*]\" = \"X\"; then\n      # -L didn't work.\n      set X `ls -t \"$srcdir/configure\" conftest.file`\n   fi\n   rm -f conftest.file\n   if test \"$[*]\" != \"X $srcdir/configure conftest.file\" \\\n      && test \"$[*]\" != \"X conftest.file $srcdir/configure\"; then\n\n      # If neither matched, then we have a broken ls.  This can happen\n      # if, for instance, CONFIG_SHELL is bash and it inherits a\n      # broken ls alias from the environment.  This has actually\n      # happened.  Such a system could not be considered \"sane\".\n      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken\nalias in your environment])\n   fi\n\n   test \"$[2]\" = conftest.file\n   )\nthen\n   # Ok.\n   :\nelse\n   AC_MSG_ERROR([newly created file is older than distributed files!\nCheck your system clock])\nfi\nAC_MSG_RESULT(yes)])\n\n# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 1\n\n# AM_PROG_INSTALL_STRIP\n# ---------------------\n# One issue with vendor `install' (even GNU) is that you can't\n# specify the program used to strip binaries.  This is especially\n# annoying in cross-compiling environments, where the build's strip\n# is unlikely to handle the host's binaries.\n# Fortunately install-sh will honor a STRIPPROG variable, so we\n# always use install-sh in `make install-strip', and initialize\n# STRIPPROG with the value of the STRIP variable (set by the user).\nAC_DEFUN([AM_PROG_INSTALL_STRIP],\n[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl\n# Installed binaries are usually stripped using `strip' when the user\n# run `make install-strip'.  However `strip' might not be the right\n# tool to use in cross-compilation environments, therefore Automake\n# will honor the `STRIP' environment variable to overrule this program.\ndnl Don't test for $cross_compiling = yes, because it might be `maybe'.\nif test \"$cross_compiling\" != no; then\n  AC_CHECK_TOOL([STRIP], [strip], :)\nfi\nINSTALL_STRIP_PROGRAM=\"\\$(install_sh) -c -s\"\nAC_SUBST([INSTALL_STRIP_PROGRAM])])\n\n# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 3\n\n# _AM_SUBST_NOTMAKE(VARIABLE)\n# ---------------------------\n# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.\n# This macro is traced by Automake.\nAC_DEFUN([_AM_SUBST_NOTMAKE])\n\n# AM_SUBST_NOTMAKE(VARIABLE)\n# --------------------------\n# Public sister of _AM_SUBST_NOTMAKE.\nAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])\n\n# Check how to create a tarball.                            -*- Autoconf -*-\n\n# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.\n#\n# This file is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# serial 2\n\n# _AM_PROG_TAR(FORMAT)\n# --------------------\n# Check how to create a tarball in format FORMAT.\n# FORMAT should be one of `v7', `ustar', or `pax'.\n#\n# Substitute a variable $(am__tar) that is a command\n# writing to stdout a FORMAT-tarball containing the directory\n# $tardir.\n#     tardir=directory && $(am__tar) > result.tar\n#\n# Substitute a variable $(am__untar) that extract such\n# a tarball read from stdin.\n#     $(am__untar) < result.tar\nAC_DEFUN([_AM_PROG_TAR],\n[# Always define AMTAR for backward compatibility.  Yes, it's still used\n# in the wild :-(  We should find a proper way to deprecate it ...\nAC_SUBST([AMTAR], ['$${TAR-tar}'])\nm4_if([$1], [v7],\n     [am__tar='$${TAR-tar} chof - \"$$tardir\"' am__untar='$${TAR-tar} xf -'],\n     [m4_case([$1], [ustar],, [pax],,\n              [m4_fatal([Unknown tar format])])\nAC_MSG_CHECKING([how to create a $1 tar archive])\n# Loop over all known methods to create a tar archive until one works.\n_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'\n_am_tools=${am_cv_prog_tar_$1-$_am_tools}\n# Do not fold the above two line into one, because Tru64 sh and\n# Solaris sh will not grok spaces in the rhs of `-'.\nfor _am_tool in $_am_tools\ndo\n  case $_am_tool in\n  gnutar)\n    for _am_tar in tar gnutar gtar;\n    do\n      AM_RUN_LOG([$_am_tar --version]) && break\n    done\n    am__tar=\"$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - \"'\"$$tardir\"'\n    am__tar_=\"$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - \"'\"$tardir\"'\n    am__untar=\"$_am_tar -xf -\"\n    ;;\n  plaintar)\n    # Must skip GNU tar: if it does not support --format= it doesn't create\n    # ustar tarball either.\n    (tar --version) >/dev/null 2>&1 && continue\n    am__tar='tar chf - \"$$tardir\"'\n    am__tar_='tar chf - \"$tardir\"'\n    am__untar='tar xf -'\n    ;;\n  pax)\n    am__tar='pax -L -x $1 -w \"$$tardir\"'\n    am__tar_='pax -L -x $1 -w \"$tardir\"'\n    am__untar='pax -r'\n    ;;\n  cpio)\n    am__tar='find \"$$tardir\" -print | cpio -o -H $1 -L'\n    am__tar_='find \"$tardir\" -print | cpio -o -H $1 -L'\n    am__untar='cpio -i -H $1 -d'\n    ;;\n  none)\n    am__tar=false\n    am__tar_=false\n    am__untar=false\n    ;;\n  esac\n\n  # If the value was cached, stop now.  We just wanted to have am__tar\n  # and am__untar set.\n  test -n \"${am_cv_prog_tar_$1}\" && break\n\n  # tar/untar a dummy directory, and stop if the command works\n  rm -rf conftest.dir\n  mkdir conftest.dir\n  echo GrepMe > conftest.dir/file\n  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])\n  rm -rf conftest.dir\n  if test -s conftest.tar; then\n    AM_RUN_LOG([$am__untar <conftest.tar])\n    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break\n  fi\ndone\nrm -rf conftest.dir\n\nAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])\nAC_MSG_RESULT([$am_cv_prog_tar_$1])])\nAC_SUBST([am__tar])\nAC_SUBST([am__untar])\n]) # _AM_PROG_TAR\n\n"
  },
  {
    "path": "autogen.sh",
    "content": "#!/bin/sh\n#                        a u t o g e n . s h\n#\n# Copyright (c) 2005-2007 United States Government as represented by\n# the U.S. Army Research Laboratory.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# 1. Redistributions of source code must retain the above copyright\n# notice, this list of conditions and the following disclaimer.\n#\n# 2. Redistributions in binary form must reproduce the above\n# copyright notice, this list of conditions and the following\n# disclaimer in the documentation and/or other materials provided\n# with the distribution.\n#\n# 3. The name of the author may not be used to endorse or promote\n# products derived from this software without specific prior written\n# permission.\n#\n# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\n# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n###\n#\n# Script for automatically preparing the sources for compilation by\n# performing the myrid of necessary steps.  The script attempts to\n# detect proper version support, and outputs warnings about particular\n# systems that have autotool peculiarities.\n#\n# Basically, if everything is set up and installed correctly, the\n# script will validate that minimum versions of the GNU Build System\n# tools are installed, account for several common configuration\n# issues, and then simply run autoreconf for you.\n#\n# If autoreconf fails, which can happen for many valid configurations,\n# this script proceeds to run manual preparation steps effectively\n# providing a POSIX shell script (mostly complete) reimplementation of\n# autoreconf.\n#\n# The AUTORECONF, AUTOCONF, AUTOMAKE, LIBTOOLIZE, ACLOCAL, AUTOHEADER\n# environment variables and corresponding _OPTIONS variables (e.g.\n# AUTORECONF_OPTIONS) may be used to override the default automatic\n# detection behaviors.  Similarly the _VERSION variables will override\n# the minimum required version numbers.\n#\n# Examples:\n#\n#   To obtain help on usage:\n#     ./autogen.sh --help\n#\n#   To obtain verbose output:\n#     ./autogen.sh --verbose\n#\n#   To skip autoreconf and prepare manually:\n#     AUTORECONF=false ./autogen.sh\n#\n#   To verbosely try running with an older (unsupported) autoconf:\n#     AUTOCONF_VERSION=2.50 ./autogen.sh --verbose\n#\n# Author: Christopher Sean Morrison <morrison@brlcad.org>\n#\n######################################################################\n\n# set to minimum acceptible version of autoconf\nif [ \"x$AUTOCONF_VERSION\" = \"x\" ] ; then\n    AUTOCONF_VERSION=2.52\nfi\n# set to minimum acceptible version of automake\nif [ \"x$AUTOMAKE_VERSION\" = \"x\" ] ; then\n    AUTOMAKE_VERSION=1.6.0\nfi\n# set to minimum acceptible version of libtool\nif [ \"x$LIBTOOL_VERSION\" = \"x\" ] ; then\n    LIBTOOL_VERSION=1.4.2\nfi\n\n\n##################\n# ident function #\n##################\nident ( ) {\n    # extract copyright from header\n    __copyright=\"`grep Copyright $AUTOGEN_SH | head -${HEAD_N}1 | awk '{print $4}'`\"\n    if [ \"x$__copyright\" = \"x\" ] ; then\n\t__copyright=\"`date +%Y`\"\n    fi\n\n    # extract version from CVS Id string\n    __id=\"$Id: autogen.sh,v 14.97 2007/06/18 22:25:02 brlcad Exp $\"\n    __version=\"`echo $__id | sed 's/.*\\([0-9][0-9][0-9][0-9]\\)[-\\/]\\([0-9][0-9]\\)[-\\/]\\([0-9][0-9]\\).*/\\1\\2\\3/'`\"\n    if [ \"x$__version\" = \"x\" ] ; then\n\t__version=\"\"\n    fi\n\n    echo \"autogen.sh build preparation script by Christopher Sean Morrison\"\n    echo \"revised 3-clause BSD-style license, copyright (c) $__copyright\"\n    echo \"script version $__version, ISO/IEC 9945 POSIX shell script\"\n}\n\n\n##################\n# USAGE FUNCTION #\n##################\nusage ( ) {\n    echo \"Usage: $AUTOGEN_SH [-h|--help] [-v|--verbose] [-q|--quiet] [--version]\"\n    echo \"    --help     Help on $NAME_OF_AUTOGEN usage\"\n    echo \"    --verbose  Verbose progress output\"\n    echo \"    --quiet    Quiet suppressed progress output\"\n    echo \"    --version  Only perform GNU Build System version checks\"\n    echo\n    echo \"Description: This script will validate that minimum versions of the\"\n    echo \"GNU Build System tools are installed and then run autoreconf for you.\"\n    echo \"Should autoreconf fail, manual preparation steps will be run\"\n    echo \"potentially accounting for several common preparation issues.  The\"\n\n    echo \"AUTORECONF, AUTOCONF, AUTOMAKE, LIBTOOLIZE, ACLOCAL, AUTOHEADER,\"\n    echo \"PROJECT, & CONFIGURE environment variables and corresponding _OPTIONS\"\n    echo \"variables (e.g. AUTORECONF_OPTIONS) may be used to override the\"\n    echo \"default automatic detection behavior.\"\n    echo\n\n    ident\n\n    return 0\n}\n\n\n##########################\n# VERSION_ERROR FUNCTION #\n##########################\nversion_error ( ) {\n    if [ \"x$1\" = \"x\" ] ; then\n\techo \"INTERNAL ERROR: version_error was not provided a version\"\n\texit 1\n    fi\n    if [ \"x$2\" = \"x\" ] ; then\n\techo \"INTERNAL ERROR: version_error was not provided an application name\"\n\texit 1\n    fi\n    $ECHO\n    $ECHO \"ERROR:  To prepare the ${PROJECT} build system from scratch,\"\n    $ECHO \"        at least version $1 of $2 must be installed.\"\n    $ECHO\n    $ECHO \"$NAME_OF_AUTOGEN does not need to be run on the same machine that will\"\n    $ECHO \"run configure or make.  Either the GNU Autotools will need to be installed\"\n    $ECHO \"or upgraded on this system, or $NAME_OF_AUTOGEN must be run on the source\"\n    $ECHO \"code on another system and then transferred to here. -- Cheers!\"\n    $ECHO\n}\n\n##########################\n# VERSION_CHECK FUNCTION #\n##########################\nversion_check ( ) {\n    if [ \"x$1\" = \"x\" ] ; then\n\techo \"INTERNAL ERROR: version_check was not provided a minimum version\"\n\texit 1\n    fi\n    _min=\"$1\"\n    if [ \"x$2\" = \"x\" ] ; then\n\techo \"INTERNAL ERROR: version check was not provided a comparison version\"\n\texit 1\n    fi\n    _cur=\"$2\"\n\n    # needed to handle versions like 1.10 and 1.4-p6\n    _min=\"`echo ${_min}. | sed 's/[^0-9]/./g' | sed 's/\\.\\././g'`\"\n    _cur=\"`echo ${_cur}. | sed 's/[^0-9]/./g' | sed 's/\\.\\././g'`\"\n\n    _min_major=\"`echo $_min | cut -d. -f1`\"\n    _min_minor=\"`echo $_min | cut -d. -f2`\"\n    _min_patch=\"`echo $_min | cut -d. -f3`\"\n\n    _cur_major=\"`echo $_cur | cut -d. -f1`\"\n    _cur_minor=\"`echo $_cur | cut -d. -f2`\"\n    _cur_patch=\"`echo $_cur | cut -d. -f3`\"\n\n    if [ \"x$_min_major\" = \"x\" ] ; then\n\t_min_major=0\n    fi\n    if [ \"x$_min_minor\" = \"x\" ] ; then\n\t_min_minor=0\n    fi\n    if [ \"x$_min_patch\" = \"x\" ] ; then\n\t_min_patch=0\n    fi\n    if [ \"x$_cur_minor\" = \"x\" ] ; then\n\t_cur_major=0\n    fi\n    if [ \"x$_cur_minor\" = \"x\" ] ; then\n\t_cur_minor=0\n    fi\n    if [ \"x$_cur_patch\" = \"x\" ] ; then\n\t_cur_patch=0\n    fi\n\n    $VERBOSE_ECHO \"Checking if ${_cur_major}.${_cur_minor}.${_cur_patch} is greater than ${_min_major}.${_min_minor}.${_min_patch}\"\n\n    if [ $_min_major -lt $_cur_major ] ; then\n\treturn 0\n    elif [ $_min_major -eq $_cur_major ] ; then\n\tif [ $_min_minor -lt $_cur_minor ] ; then\n\t    return 0\n\telif [ $_min_minor -eq $_cur_minor ] ; then\n\t    if [ $_min_patch -lt $_cur_patch ] ; then\n\t\treturn 0\n\t    elif [ $_min_patch -eq $_cur_patch ] ; then\n\t\treturn 0\n\t    fi\n\tfi\n    fi\n    return 1\n}\n\n\n######################################\n# LOCATE_CONFIGURE_TEMPLATE FUNCTION #\n######################################\nlocate_configure_template ( ) {\n    _pwd=\"`pwd`\"\n    if test -f \"./configure.ac\" ; then\n\techo \"./configure.ac\"\n    elif test -f \"./configure.in\" ; then\n\techo \"./configure.in\"\n    elif test -f \"$_pwd/configure.ac\" ; then\n\techo \"$_pwd/configure.ac\"\n    elif test -f \"$_pwd/configure.in\" ; then\n\techo \"$_pwd/configure.in\"\n    elif test -f \"$PATH_TO_AUTOGEN/configure.ac\" ; then\n\techo \"$PATH_TO_AUTOGEN/configure.ac\"\n    elif test -f \"$PATH_TO_AUTOGEN/configure.in\" ; then\n\techo \"$PATH_TO_AUTOGEN/configure.in\"\n    fi\n}\n\n\n##################\n# argument check #\n##################\nARGS=\"$*\"\nPATH_TO_AUTOGEN=\"`dirname $0`\"\nNAME_OF_AUTOGEN=\"`basename $0`\"\nAUTOGEN_SH=\"$PATH_TO_AUTOGEN/$NAME_OF_AUTOGEN\"\n\nLIBTOOL_M4=\"${PATH_TO_AUTOGEN}/misc/libtool.m4\"\n\nif [ \"x$HELP\" = \"x\" ] ; then\n    HELP=no\nfi\nif [ \"x$QUIET\" = \"x\" ] ; then\n    QUIET=no\nfi\nif [ \"x$VERBOSE\" = \"x\" ] ; then\n    VERBOSE=no\nfi\nif [ \"x$VERSION_ONLY\" = \"x\" ] ; then\n    VERSION_ONLY=no\nfi\nif [ \"x$AUTORECONF_OPTIONS\" = \"x\" ] ; then\n    AUTORECONF_OPTIONS=\"-i -f\"\nfi\nif [ \"x$AUTOCONF_OPTIONS\" = \"x\" ] ; then\n    AUTOCONF_OPTIONS=\"-f\"\nfi\nif [ \"x$AUTOMAKE_OPTIONS\" = \"x\" ] ; then\n    AUTOMAKE_OPTIONS=\"-a -c -f\"\nfi\nALT_AUTOMAKE_OPTIONS=\"-a -c\"\nif [ \"x$LIBTOOLIZE_OPTIONS\" = \"x\" ] ; then\n    LIBTOOLIZE_OPTIONS=\"--automake -c -f\"\nfi\nALT_LIBTOOLIZE_OPTIONS=\"--automake --copy --force\"\nif [ \"x$ACLOCAL_OPTIONS\" = \"x\" ] ; then\n    ACLOCAL_OPTIONS=\"\"\nfi\nif [ \"x$AUTOHEADER_OPTIONS\" = \"x\" ] ; then\n    AUTOHEADER_OPTIONS=\"\"\nfi\nfor arg in $ARGS ; do\n    case \"x$arg\" in\n\tx--help) HELP=yes ;;\n\tx-[hH]) HELP=yes ;;\n\tx--quiet) QUIET=yes ;;\n\tx-[qQ]) QUIET=yes ;;\n\tx--verbose) VERBOSE=yes ;;\n\tx-[vV]) VERBOSE=yes ;;\n\tx--version) VERSION_ONLY=yes ;;\n\t*)\n\t    echo \"Unknown option: $arg\"\n\t    echo\n\t    usage\n\t    exit 1\n\t    ;;\n    esac\ndone\n\n\n#####################\n# environment check #\n#####################\n\n# sanity check before recursions potentially begin\nif [ ! -f \"$AUTOGEN_SH\" ] ; then\n    echo \"INTERNAL ERROR: $AUTOGEN_SH does not exist\"\n    if [ ! \"x$0\" = \"x$AUTOGEN_SH\" ] ; then\n\techo \"INTERNAL ERROR: dirname/basename inconsistency: $0 != $AUTOGEN_SH\"\n    fi\n    exit 1\nfi\n\n# force locale setting to C so things like date output as expected\nLC_ALL=C\n\n# commands that this script expects\nfor __cmd in echo head tail pwd ; do\n    echo \"test\" | $__cmd > /dev/null 2>&1\n    if [ $? != 0 ] ; then\n\techo \"INTERNAL ERROR: '${__cmd}' command is required\"\n\texit 2\n    fi\ndone\necho \"test\" | grep \"test\" > /dev/null 2>&1\nif test ! x$? = x0 ; then\n    echo \"INTERNAL ERROR: grep command is required\"\n    exit 1\nfi\necho \"test\" | sed \"s/test/test/\" > /dev/null 2>&1\nif test ! x$? = x0 ; then\n    echo \"INTERNAL ERROR: sed command is required\"\n    exit 1\nfi\n\n\n# determine the behavior of echo\ncase `echo \"testing\\c\"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in\n    *c*,-n*) ECHO_N= ECHO_C='\n' ECHO_T='\t' ;;\n    *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;\n    *)       ECHO_N= ECHO_C='\\c' ECHO_T= ;;\nesac\n\n# determine the behavior of head\ncase \"x`echo 'head' | head -n 1 2>&1`\" in\n    *xhead*) HEAD_N=\"n \" ;;\n    *) HEAD_N=\"\" ;;\nesac\n\n# determine the behavior of tail\ncase \"x`echo 'tail' | tail -n 1 2>&1`\" in\n    *xtail*) TAIL_N=\"n \" ;;\n    *) TAIL_N=\"\" ;;\nesac\n\nVERBOSE_ECHO=:\nECHO=:\nif [ \"x$QUIET\" = \"xyes\" ] ; then\n    if [ \"x$VERBOSE\" = \"xyes\" ] ; then\n\techo \"Verbose output quelled by quiet option.  Further output disabled.\"\n    fi\nelse\n    ECHO=echo\n    if [ \"x$VERBOSE\" = \"xyes\" ] ; then\n\techo \"Verbose output enabled\"\n\tVERBOSE_ECHO=echo\n    fi\nfi\n\n\n# allow a recursive run to disable further recursions\nif [ \"x$RUN_RECURSIVE\" = \"x\" ] ; then\n    RUN_RECURSIVE=yes\nfi\n\n\n################################################\n# check for help arg and bypass version checks #\n################################################\nif [ \"x`echo $ARGS | sed 's/.*[hH][eE][lL][pP].*/help/'`\" = \"xhelp\" ] ; then\n    HELP=yes\nfi\nif [ \"x$HELP\" = \"xyes\" ] ; then\n    usage\n    $ECHO \"---\"\n    $ECHO \"Help was requested.  No preparation or configuration will be performed.\"\n    exit 0\nfi\n\n\n#######################\n# set up signal traps #\n#######################\nuntrap_abnormal ( ) {\n    for sig in 1 2 13 15; do\n\ttrap - $sig\n    done\n}\n\n# do this cleanup whenever we exit.\ntrap '\n    # start from the root\n    if test -d \"$START_PATH\" ; then\n\tcd \"$START_PATH\"\n    fi\n\n    # restore/delete backup files\n    if test \"x$PFC_INIT\" = \"x1\" ; then\n\trecursive_restore\n    fi\n' 0\n\n# trap SIGHUP (1), SIGINT (2), SIGPIPE (13), SIGTERM (15)\nfor sig in 1 2 13 15; do\n    trap '\n\t$ECHO \"\"\n\t$ECHO \"Aborting $NAME_OF_AUTOGEN: caught signal '$sig'\"\n\n\t# start from the root\n\tif test -d \"$START_PATH\" ; then\n\t    cd \"$START_PATH\"\n\tfi\n\n\t# clean up on abnormal exit\n\t$VERBOSE_ECHO \"rm -rf autom4te.cache\"\n\trm -rf autom4te.cache\n\n\tif test -f \"acinclude.m4.$$.backup\" ; then\n\t    $VERBOSE_ECHO \"cat acinclude.m4.$$.backup > acinclude.m4\"\n\t    chmod u+w acinclude.m4\n\t    cat acinclude.m4.$$.backup > acinclude.m4\n\n\t    $VERBOSE_ECHO \"rm -f acinclude.m4.$$.backup\"\n\t    rm -f acinclude.m4.$$.backup\n        fi\n\n\t{ (exit 1); exit 1; }\n' $sig\ndone\n\n\n#############################\n# look for a configure file #\n#############################\nif [ \"x$CONFIGURE\" = \"x\" ] ; then\n    CONFIGURE=\"`locate_configure_template`\"\n    if [ ! \"x$CONFIGURE\" = \"x\" ] ; then\n\t$VERBOSE_ECHO \"Found a configure template: $CONFIGURE\"\n    fi\nelse\n    $ECHO \"Using CONFIGURE environment variable override: $CONFIGURE\"\nfi\nif [ \"x$CONFIGURE\" = \"x\" ] ; then\n    if [ \"x$VERSION_ONLY\" = \"xyes\" ] ; then\n\tCONFIGURE=/dev/null\n    else\n\t$ECHO\n\t$ECHO \"A configure.ac or configure.in file could not be located implying\"\n\t$ECHO \"that the GNU Build System is at least not used in this directory.  In\"\n\t$ECHO \"any case, there is nothing to do here without one of those files.\"\n\t$ECHO\n\t$ECHO \"ERROR: No configure.in or configure.ac file found in `pwd`\"\n\texit 1\n    fi\nfi\n\n####################\n# get project name #\n####################\nif [ \"x$PROJECT\" = \"x\" ] ; then\n    PROJECT=\"`grep AC_INIT $CONFIGURE | grep -v '.*#.*AC_INIT' | tail -${TAIL_N}1 | sed 's/^[ \t]*AC_INIT(\\([^,)]*\\).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    if [ \"x$PROJECT\" = \"xAC_INIT\" ] ; then\n\t# projects might be using the older/deprecated arg-less AC_INIT .. look for AM_INIT_AUTOMAKE instead\n\tPROJECT=\"`grep AM_INIT_AUTOMAKE $CONFIGURE | grep -v '.*#.*AM_INIT_AUTOMAKE' | tail -${TAIL_N}1 | sed 's/^[ \t]*AM_INIT_AUTOMAKE(\\([^,)]*\\).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    fi\n    if [ \"x$PROJECT\" = \"xAM_INIT_AUTOMAKE\" ] ; then\n\tPROJECT=\"project\"\n    fi\n    if [ \"x$PROJECT\" = \"x\" ] ; then\n\tPROJECT=\"project\"\n    fi\nelse\n    $ECHO \"Using PROJECT environment variable override: $PROJECT\"\nfi\n$ECHO \"Preparing the $PROJECT build system...please wait\"\n$ECHO\n\n\n########################\n# check for autoreconf #\n########################\nHAVE_AUTORECONF=no\nif [ \"x$AUTORECONF\" = \"x\" ] ; then\n    for AUTORECONF in autoreconf ; do\n\t$VERBOSE_ECHO \"Checking autoreconf version: $AUTORECONF --version\"\n\t$AUTORECONF --version > /dev/null 2>&1\n\tif [ $? = 0 ] ; then\n\t    HAVE_AUTORECONF=yes\n\t    break\n\tfi\n    done\nelse\n    HAVE_AUTORECONF=yes\n    $ECHO \"Using AUTORECONF environment variable override: $AUTORECONF\"\nfi\n\n\n##########################\n# autoconf version check #\n##########################\n_acfound=no\nif [ \"x$AUTOCONF\" = \"x\" ] ; then\n    for AUTOCONF in autoconf ; do\n\t$VERBOSE_ECHO \"Checking autoconf version: $AUTOCONF --version\"\n\t$AUTOCONF --version > /dev/null 2>&1\n\tif [ $? = 0 ] ; then\n\t    _acfound=yes\n\t    break\n\tfi\n    done\nelse\n    _acfound=yes\n    $ECHO \"Using AUTOCONF environment variable override: $AUTOCONF\"\nfi\n\n_report_error=no\nif [ ! \"x$_acfound\" = \"xyes\" ] ; then\n    $ECHO \"ERROR:  Unable to locate GNU Autoconf.\"\n    _report_error=yes\nelse\n    _version=\"`$AUTOCONF --version | head -${HEAD_N}1 | sed 's/[^0-9]*\\([0-9\\.][0-9\\.]*\\)/\\1/'`\"\n    if [ \"x$_version\" = \"x\" ] ; then\n\t_version=\"0.0.0\"\n    fi\n    $ECHO \"Found GNU Autoconf version $_version\"\n    version_check \"$AUTOCONF_VERSION\" \"$_version\"\n    if [ $? -ne 0 ] ; then\n\t_report_error=yes\n    fi\nfi\nif [ \"x$_report_error\" = \"xyes\" ] ; then\n    version_error \"$AUTOCONF_VERSION\" \"GNU Autoconf\"\n    exit 1\nfi\n\n\n##########################\n# automake version check #\n##########################\n_amfound=no\nif [ \"x$AUTOMAKE\" = \"x\" ] ; then\n    for AUTOMAKE in automake ; do\n\t$VERBOSE_ECHO \"Checking automake version: $AUTOMAKE --version\"\n\t$AUTOMAKE --version > /dev/null 2>&1\n\tif [ $? = 0 ] ; then\n\t    _amfound=yes\n\t    break\n\tfi\n    done\nelse\n    _amfound=yes\n    $ECHO \"Using AUTOMAKE environment variable override: $AUTOMAKE\"\nfi\n\n\n_report_error=no\nif [ ! \"x$_amfound\" = \"xyes\" ] ; then\n    $ECHO\n    $ECHO \"ERROR: Unable to locate GNU Automake.\"\n    _report_error=yes\nelse\n    _version=\"`$AUTOMAKE --version | head -${HEAD_N}1 | sed 's/[^0-9]*\\([0-9\\.][0-9\\.]*\\)/\\1/'`\"\n    if [ \"x$_version\" = \"x\" ] ; then\n\t_version=\"0.0.0\"\n    fi\n    $ECHO \"Found GNU Automake version $_version\"\n    version_check \"$AUTOMAKE_VERSION\" \"$_version\" \n    if [ $? -ne 0 ] ; then\n\t_report_error=yes\n    fi\nfi\nif [ \"x$_report_error\" = \"xyes\" ] ; then\n    version_error \"$AUTOMAKE_VERSION\" \"GNU Automake\"\n    exit 1\nfi\n\n\n########################\n# check for libtoolize #\n########################\nHAVE_LIBTOOLIZE=yes\nHAVE_ALT_LIBTOOLIZE=no\n_ltfound=no\nif [ \"x$LIBTOOLIZE\" = \"x\" ] ; then\n    LIBTOOLIZE=libtoolize\n    $VERBOSE_ECHO \"Checking libtoolize version: $LIBTOOLIZE --version\"\n    $LIBTOOLIZE --version > /dev/null 2>&1\n    if [ ! $? = 0 ] ; then\n\tHAVE_LIBTOOLIZE=no\n\t$ECHO\n\tif [ \"x$HAVE_AUTORECONF\" = \"xno\" ] ; then\n\t    $ECHO \"Warning:  libtoolize does not appear to be available.\"\n\telse\n\t    $ECHO \"Warning:  libtoolize does not appear to be available.  This means that\"\n\t    $ECHO \"the automatic build preparation via autoreconf will probably not work.\"\n\t    $ECHO \"Preparing the build by running each step individually, however, should\"\n\t    $ECHO \"work and will be done automatically for you if autoreconf fails.\"\n\tfi\n\n\t# look for some alternates\n\tfor tool in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do\n\t    $VERBOSE_ECHO \"Checking libtoolize alternate: $tool --version\"\n\t    _glibtoolize=\"`$tool --version > /dev/null 2>&1`\"\n\t    if [ $? = 0 ] ; then\n\t\t$VERBOSE_ECHO \"Found $tool --version\"\n\t\t_glti=\"`which $tool`\"\n\t\tif [ \"x$_glti\" = \"x\" ] ; then\n\t\t    $VERBOSE_ECHO \"Cannot find $tool with which\"\n\t\t    continue;\n\t\tfi\n\t\tif test ! -f \"$_glti\" ; then\n\t\t    $VERBOSE_ECHO \"Cannot use $tool, $_glti is not a file\"\n\t\t    continue;\n\t\tfi\n\t\t_gltidir=\"`dirname $_glti`\"\n\t\tif [ \"x$_gltidir\" = \"x\" ] ; then\n\t\t    $VERBOSE_ECHO \"Cannot find $tool path with dirname of $_glti\"\n\t\t    continue;\n\t\tfi\n\t\tif test ! -d \"$_gltidir\" ; then\n\t\t    $VERBOSE_ECHO \"Cannot use $tool, $_gltidir is not a directory\"\n\t\t    continue;\n\t\tfi\n\t\tHAVE_ALT_LIBTOOLIZE=yes\n\t\tLIBTOOLIZE=\"$tool\"\n\t\t$ECHO\n\t\t$ECHO \"Fortunately, $tool was found which means that your system may simply\"\n\t\t$ECHO \"have a non-standard or incomplete GNU Autotools install.  If you have\"\n\t\t$ECHO \"sufficient system access, it may be possible to quell this warning by\"\n\t\t$ECHO \"running:\"\n\t\t$ECHO\n\t\tsudo -V > /dev/null 2>&1\n\t\tif [ $? = 0 ] ; then\n\t\t    $ECHO \"   sudo ln -s $_glti $_gltidir/libtoolize\"\n\t\t    $ECHO\n\t\telse\n\t\t    $ECHO \"   ln -s $_glti $_gltidir/libtoolize\"\n\t\t    $ECHO\n\t\t    $ECHO \"Run that as root or with proper permissions to the $_gltidir directory\"\n\t\t    $ECHO\n\t\tfi\n\t\t_ltfound=yes\n\t\tbreak\n\t    fi\n\tdone\n    else\n\t_ltfound=yes\n    fi\nelse\n    _ltfound=yes\n    $ECHO \"Using LIBTOOLIZE environment variable override: $LIBTOOLIZE\"\nfi\n\n\n############################\n# libtoolize version check #\n############################\n_report_error=no\nif [ ! \"x$_ltfound\" = \"xyes\" ] ; then\n    $ECHO\n    $ECHO \"ERROR: Unable to locate GNU Libtool.\"\n    _report_error=yes\nelse\n    _version=\"`$LIBTOOLIZE --version | head -${HEAD_N}1 | sed 's/[^0-9]*\\([0-9\\.][0-9\\.]*\\)/\\1/'`\"\n    if [ \"x$_version\" = \"x\" ] ; then\n\t_version=\"0.0.0\"\n    fi\n    $ECHO \"Found GNU Libtool version $_version\"\n    version_check \"$LIBTOOL_VERSION\" \"$_version\" \n    if [ $? -ne 0 ] ; then\n\t_report_error=yes\n    fi\nfi\nif [ \"x$_report_error\" = \"xyes\" ] ; then\n    version_error \"$LIBTOOL_VERSION\" \"GNU Libtool\"\n    exit 1\nfi\n\n\n#####################\n# check for aclocal #\n#####################\nif [ \"x$ACLOCAL\" = \"x\" ] ; then\n    for ACLOCAL in aclocal ; do\n\t$VERBOSE_ECHO \"Checking aclocal version: $ACLOCAL --version\"\n\t$ACLOCAL --version > /dev/null 2>&1\n\tif [ $? = 0 ] ; then\n\t    break\n\tfi\n    done\nelse\n    $ECHO \"Using ACLOCAL environment variable override: $ACLOCAL\"\nfi\n\n\n########################\n# check for autoheader #\n########################\nif [ \"x$AUTOHEADER\" = \"x\" ] ; then\n    for AUTOHEADER in autoheader ; do\n\t$VERBOSE_ECHO \"Checking autoheader version: $AUTOHEADER --version\"\n\t$AUTOHEADER --version > /dev/null 2>&1\n\tif [ $? = 0 ] ; then\n\t    break\n\tfi\n    done\nelse\n    $ECHO \"Using AUTOHEADER environment variable override: $AUTOHEADER\"\nfi\n\n\n#########################\n# check if version only #\n#########################\n$VERBOSE_ECHO \"Checking whether to only output version information\"\nif [ \"x$VERSION_ONLY\" = \"xyes\" ] ; then\n    $ECHO\n    ident\n    $ECHO \"---\"\n    $ECHO \"Version requested.  No preparation or configuration will be performed.\"\n    exit 0\nfi\n\n\n#################################\n# PROTECT_FROM_CLOBBER FUNCTION #\n#################################\nprotect_from_clobber ( ) {\n    PFC_INIT=1\n\n    # protect COPYING & INSTALL from overwrite by automake.  the\n    # automake force option will (inappropriately) ignore the existing\n    # contents of a COPYING and/or INSTALL files (depending on the\n    # version) instead of just forcing *missing* files like it does\n    # for AUTHORS, NEWS, and README. this is broken but extremely\n    # prevalent behavior, so we protect against it by keeping a backup\n    # of the file that can later be restored.\n\n    if test -f COPYING ; then\n\tif test -f COPYING.$$.protect_from_automake.backup ; then\n\t    $VERBOSE_ECHO \"Already backed up COPYING in `pwd`\"\n\telse\n\t    $VERBOSE_ECHO \"Backing up COPYING in `pwd`\"\n\t    $VERBOSE_ECHO \"cp -p COPYING COPYING.$$.protect_from_automake.backup\"\n\t    cp -p COPYING COPYING.$$.protect_from_automake.backup\n\tfi\n    fi\n    if test -f INSTALL ; then\n\tif test -f INSTALL.$$.protect_from_automake.backup ; then\n\t    $VERBOSE_ECHO \"Already backed up INSTALL in `pwd`\"\n\telse\n\t    $VERBOSE_ECHO \"Backing up INSTALL in `pwd`\"\n\t    $VERBOSE_ECHO \"cp -p INSTALL INSTALL.$$.protect_from_automake.backup\"\n\t    cp -p INSTALL INSTALL.$$.protect_from_automake.backup\n\tfi\n    fi\n}\n\n\n##############################\n# RECURSIVE_PROTECT FUNCTION #\n##############################\nrecursive_protect ( ) {\n\n    # for projects using recursive configure, run the build\n    # preparation steps for the subdirectories.  this function assumes\n    # START_PATH was set to pwd before recursion begins so that\n    # relative paths work.\n\n    # git 'r done, protect COPYING and INSTALL from being clobbered\n    protect_from_clobber\n\n    if test -d autom4te.cache ; then\n\t$VERBOSE_ECHO \"Found an autom4te.cache directory, deleting it\"\n\t$VERBOSE_ECHO \"rm -rf autom4te.cache\"\n\trm -rf autom4te.cache\n    fi\n\n    # find configure template\n    _configure=\"`locate_configure_template`\"\n    if [ \"x$_configure\" = \"x\" ] ; then\n\treturn\n    fi\n    # $VERBOSE_ECHO \"Looking for configure template found `pwd`/$_configure\"\n\n    # look for subdirs\n    # $VERBOSE_ECHO \"Looking for subdirs in `pwd`\"\n    _det_config_subdirs=\"`grep AC_CONFIG_SUBDIRS $_configure | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ \t]*AC_CONFIG_SUBDIRS(\\(.*\\)).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    CHECK_DIRS=\"\"\n    for dir in $_det_config_subdirs ; do\n\tif test -d \"`pwd`/$dir\" ; then\n\t    CHECK_DIRS=\"$CHECK_DIRS \\\"`pwd`/$dir\\\"\"\n\tfi\n    done\n\n    # process subdirs\n    if [ ! \"x$CHECK_DIRS\" = \"x\" ] ; then\n\t$VERBOSE_ECHO \"Recursively scanning the following directories:\"\n\t$VERBOSE_ECHO \"  $CHECK_DIRS\"\n\tfor dir in $CHECK_DIRS ; do\n\t    $VERBOSE_ECHO \"Protecting files from automake in $dir\"\n\t    cd \"$START_PATH\"\n\t    eval \"cd $dir\"\n\n\t    # recursively git 'r done\n\t    recursive_protect\n\tdone\n    fi\n} # end of recursive_protect\n\n\n#############################\n# RESTORE_CLOBBERED FUNCION #\n#############################\nrestore_clobbered ( ) {\n\n    # The automake (and autoreconf by extension) -f/--force-missing\n    # option may overwrite COPYING and INSTALL even if they do exist.\n    # Here we restore the files if necessary.\n\n    spacer=no\n\n    # COPYING\n    if test -f COPYING.$$.protect_from_automake.backup ; then\n\tif test -f COPYING ; then\n\t    # compare entire content, restore if needed\n\t    if test \"x`cat COPYING`\" != \"x`cat COPYING.$$.protect_from_automake.backup`\" ; then\n\t\tif test \"x$spacer\" = \"xno\" ; then\n\t\t    $VERBOSE_ECHO\n\t\t    spacer=yes\n\t\tfi\n\t\t# restore the backup\n\t\t$VERBOSE_ECHO \"Restoring COPYING from backup (automake -f likely clobbered it)\"\n\t\t$VERBOSE_ECHO \"rm -f COPYING\"\n\t\trm -f COPYING\n\t\t$VERBOSE_ECHO \"mv COPYING.$$.protect_from_automake.backup COPYING\"\n\t\tmv COPYING.$$.protect_from_automake.backup COPYING\n\t    fi # check contents\n\telif test -f COPYING.$$.protect_from_automake.backup ; then\n\t    $VERBOSE_ECHO \"mv COPYING.$$.protect_from_automake.backup COPYING\"\n\t    mv COPYING.$$.protect_from_automake.backup COPYING\n\tfi # -f COPYING\n\n\t# just in case\n\t$VERBOSE_ECHO \"rm -f COPYING.$$.protect_from_automake.backup\"\n\trm -f COPYING.$$.protect_from_automake.backup\n    fi # -f COPYING.$$.protect_from_automake.backup\n\n    # INSTALL\n    if test -f INSTALL.$$.protect_from_automake.backup ; then\n\tif test -f INSTALL ; then\n\t    # compare entire content, restore if needed\n\t    if test \"x`cat INSTALL`\" != \"x`cat INSTALL.$$.protect_from_automake.backup`\" ; then\n\t\tif test \"x$spacer\" = \"xno\" ; then\n\t\t    $VERBOSE_ECHO\n\t\t    spacer=yes\n\t\tfi\n\t\t# restore the backup\n\t\t$VERBOSE_ECHO \"Restoring INSTALL from backup (automake -f likely clobbered it)\"\n\t\t$VERBOSE_ECHO \"rm -f INSTALL\"\n\t\trm -f INSTALL\n\t\t$VERBOSE_ECHO \"mv INSTALL.$$.protect_from_automake.backup INSTALL\"\n\t\tmv INSTALL.$$.protect_from_automake.backup INSTALL\n\t    fi # check contents\n\telif test -f INSTALL.$$.protect_from_automake.backup ; then\n\t    $VERBOSE_ECHO \"mv INSTALL.$$.protect_from_automake.backup INSTALL\"\n\t    mv INSTALL.$$.protect_from_automake.backup INSTALL\n\tfi # -f INSTALL\n\n\t# just in case\n\t$VERBOSE_ECHO \"rm -f INSTALL.$$.protect_from_automake.backup\"\n\trm -f INSTALL.$$.protect_from_automake.backup\n    fi # -f INSTALL.$$.protect_from_automake.backup\n\n    CONFIGURE=\"`locate_configure_template`\"\n    if [ \"x$CONFIGURE\" = \"x\" ] ; then\n\treturn\n    fi\n\n    _aux_dir=\"`grep AC_CONFIG_AUX_DIR $CONFIGURE | grep -v '.*#.*AC_CONFIG_AUX_DIR' | tail -${TAIL_N}1 | sed 's/^[ \t]*AC_CONFIG_AUX_DIR(\\(.*\\)).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    if test ! -d \"$_aux_dir\" ; then\n\t_aux_dir=.\n    fi\n\n    for file in config.guess config.sub ltmain.sh ; do\n\tif test -f \"${_aux_dir}/${file}\" ; then\n\t    $VERBOSE_ECHO \"rm -f \\\"${_aux_dir}/${file}.backup\\\"\"\n\t    rm -f \"${_aux_dir}/${file}.backup\"\n\tfi\n    done\n} # end of restore_clobbered\n\n\n##############################\n# RECURSIVE_RESTORE FUNCTION #\n##############################\nrecursive_restore ( ) {\n\n    # restore COPYING and INSTALL from backup if they were clobbered\n    # for each directory recursively.\n\n    # git 'r undone\n    restore_clobbered\n\n    # find configure template\n    _configure=\"`locate_configure_template`\"\n    if [ \"x$_configure\" = \"x\" ] ; then\n\treturn\n    fi\n\n    # look for subdirs\n    _det_config_subdirs=\"`grep AC_CONFIG_SUBDIRS $_configure | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ \t]*AC_CONFIG_SUBDIRS(\\(.*\\)).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    CHECK_DIRS=\"\"\n    for dir in $_det_config_subdirs ; do\n\tif test -d \"`pwd`/$dir\" ; then\n\t    CHECK_DIRS=\"$CHECK_DIRS \\\"`pwd`/$dir\\\"\"\n\tfi\n    done\n\n    # process subdirs\n    if [ ! \"x$CHECK_DIRS\" = \"x\" ] ; then\n\t$VERBOSE_ECHO \"Recursively scanning the following directories:\"\n\t$VERBOSE_ECHO \"  $CHECK_DIRS\"\n\tfor dir in $CHECK_DIRS ; do\n\t    $VERBOSE_ECHO \"Checking files for automake damage in $dir\"\n\t    cd \"$START_PATH\"\n\t    eval \"cd $dir\"\n\n\t    # recursively git 'r undone\n\t    recursive_restore\n\tdone\n    fi\n} # end of recursive_restore\n\n\n#######################\n# INITIALIZE FUNCTION #\n#######################\ninitialize ( ) {\n\n    # this routine performs a variety of directory-specific\n    # initializations.  some are sanity checks, some are preventive,\n    # and some are necessary setup detection.\n    #\n    # this function sets:\n    #   CONFIGURE\n    #   SEARCH_DIRS\n    #   CONFIG_SUBDIRS\n\n    ##################################\n    # check for a configure template #\n    ##################################\n    CONFIGURE=\"`locate_configure_template`\"\n    if [ \"x$CONFIGURE\" = \"x\" ] ; then\n\t$ECHO\n\t$ECHO \"A configure.ac or configure.in file could not be located implying\"\n\t$ECHO \"that the GNU Build System is at least not used in this directory.  In\"\n\t$ECHO \"any case, there is nothing to do here without one of those files.\"\n\t$ECHO\n\t$ECHO \"ERROR: No configure.in or configure.ac file found in `pwd`\"\n\texit 1\n    fi\n\n    #####################\n    # detect an aux dir #\n    #####################\n    _aux_dir=\"`grep AC_CONFIG_AUX_DIR $CONFIGURE | grep -v '.*#.*AC_CONFIG_AUX_DIR' | tail -${TAIL_N}1 | sed 's/^[ \t]*AC_CONFIG_AUX_DIR(\\(.*\\)).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    if test ! -d \"$_aux_dir\" ; then\n\t_aux_dir=.\n    else\n\t$VERBOSE_ECHO \"Detected auxillary directory: $_aux_dir\"\n    fi\n\n    ################################\n    # detect a recursive configure #\n    ################################\n    CONFIG_SUBDIRS=\"\"\n    _det_config_subdirs=\"`grep AC_CONFIG_SUBDIRS $CONFIGURE | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ \t]*AC_CONFIG_SUBDIRS(\\(.*\\)).*/\\1/' | sed 's/.*\\[\\(.*\\)\\].*/\\1/'`\"\n    for dir in $_det_config_subdirs ; do\n\tif test -d \"`pwd`/$dir\" ; then\n\t    $VERBOSE_ECHO \"Detected recursive configure directory: `pwd`/$dir\"\n\t    CONFIG_SUBDIRS=\"$CONFIG_SUBDIRS `pwd`/$dir\"\n\tfi\n    done\n\n    ##########################################\n    # make sure certain required files exist #\n    ##########################################\n    for file in AUTHORS COPYING ChangeLog INSTALL NEWS README ; do\n\tif test ! -f $file ; then\n\t    $VERBOSE_ECHO \"Touching ${file} since it does not exist\"\n\t    touch $file\n\tfi\n    done\n\n    ##################################################\n    # make sure certain generated files do not exist #\n    ##################################################\n    for file in config.guess config.sub ltmain.sh ; do\n\tif test -f \"${_aux_dir}/${file}\" ; then\n\t    $VERBOSE_ECHO \"mv -f \\\"${_aux_dir}/${file}\\\" \\\"${_aux_dir}/${file}.backup\\\"\"\n\t    mv -f \"${_aux_dir}/${file}\" \"${_aux_dir}/${file}.backup\"\n\tfi\n    done\n\n    ############################\n    # search alternate m4 dirs #\n    ############################\n    SEARCH_DIRS=\"\"\n    for dir in m4 ; do\n\tif [ -d $dir ] ; then\n\t    $VERBOSE_ECHO \"Found extra aclocal search directory: $dir\"\n\t    SEARCH_DIRS=\"$SEARCH_DIRS -I $dir\"\n\tfi\n    done\n\n    ######################################\n    # remove any previous build products #\n    ######################################\n    if test -d autom4te.cache ; then\n\t$VERBOSE_ECHO \"Found an autom4te.cache directory, deleting it\"\n\t$VERBOSE_ECHO \"rm -rf autom4te.cache\"\n\trm -rf autom4te.cache\n    fi\n# tcl/tk (and probably others) have a customized aclocal.m4, so can't delete it\n#     if test -f aclocal.m4 ; then\n# \t$VERBOSE_ECHO \"Found an aclocal.m4 file, deleting it\"\n# \t$VERBOSE_ECHO \"rm -f aclocal.m4\"\n# \trm -f aclocal.m4\n#     fi\n\n} # end of initialize()\n\n\n##############\n# initialize #\n##############\n\n# stash path\nSTART_PATH=\"`pwd`\"\n\n# Before running autoreconf or manual steps, some prep detection work\n# is necessary or useful.  Only needs to occur once per directory, but\n# does need to traverse the entire subconfigure hierarchy to protect\n# files from being clobbered even by autoreconf.\nrecursive_protect\n\n# start from where we started\ncd \"$START_PATH\"\n\n# get ready to process\ninitialize\n\n\n############################################\n# prepare build via autoreconf or manually #\n############################################\nreconfigure_manually=no\nif [ \"x$HAVE_AUTORECONF\" = \"xyes\" ] ; then\n    $ECHO\n    $ECHO $ECHO_N \"Automatically preparing build ... $ECHO_C\"\n\n    $VERBOSE_ECHO \"$AUTORECONF $SEARCH_DIRS $AUTORECONF_OPTIONS\"\n    autoreconf_output=\"`$AUTORECONF $SEARCH_DIRS $AUTORECONF_OPTIONS 2>&1`\"\n    ret=$?\n    $VERBOSE_ECHO \"$autoreconf_output\"\n\n    if [ ! $ret = 0 ] ; then\n\tif [ \"x$HAVE_ALT_LIBTOOLIZE\" = \"xyes\" ] ; then\n\t    if [ ! \"x`echo \\\"$autoreconf_output\\\" | grep libtoolize | grep \\\"No such file or directory\\\"`\" = \"x\" ] ; then\n\t\t$ECHO\n\t\t$ECHO \"Warning: autoreconf failed but due to what is usually a common libtool\"\n\t\t$ECHO \"misconfiguration issue.  This problem is encountered on systems that\"\n\t\t$ECHO \"have installed libtoolize under a different name without providing a\"\n\t\t$ECHO \"symbolic link or without setting the LIBTOOLIZE environment variable.\"\n\t\t$ECHO\n\t\t$ECHO \"Restarting the preparation steps with LIBTOOLIZE set to $LIBTOOLIZE\"\n\n\t\texport LIBTOOLIZE\n\t\tRUN_RECURSIVE=no\n\t\texport RUN_RECURSIVE\n\t\tuntrap_abnormal\n\n\t\t$VERBOSE_ECHO sh $AUTOGEN_SH \"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\" \"$9\"\n\t\tsh \"$AUTOGEN_SH\" \"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\" \"$9\"\n\t\texit $?\n\t    fi\n\tfi\n\n\t$ECHO \"Warning: $AUTORECONF failed\"\n\n\tif test -f ltmain.sh ; then\n\t    $ECHO \"libtoolize being run by autoreconf is not creating ltmain.sh in the auxillary directory like it should\"\n\tfi\n\n\t$ECHO \"Attempting to run the preparation steps individually\"\n\treconfigure_manually=yes\n    fi\nelse\n    reconfigure_manually=yes\nfi\n\n\n############################\n# LIBTOOL_FAILURE FUNCTION #\n############################\nlibtool_failure ( ) {\n\n    # libtool is rather error-prone in comparison to the other\n    # autotools and this routine attempts to compensate for some\n    # common failures.  the output after a libtoolize failure is\n    # parsed for an error related to AC_PROG_LIBTOOL and if found, we\n    # attempt to inject a project-provided libtool.m4 file.\n\n    _autoconf_output=\"$1\"\n\n    if [ \"x$RUN_RECURSIVE\" = \"xno\" ] ; then\n\t# we already tried the libtool.m4, don't try again\n\treturn 1\n    fi\n\n    if test -f \"$LIBTOOL_M4\" ; then\n\tfound_libtool=\"`$ECHO $_autoconf_output | grep AC_PROG_LIBTOOL`\"\n\tif test ! \"x$found_libtool\" = \"x\" ; then\n\t    if test -f acinclude.m4 ; then\n\t\trm -f acinclude.m4.$$.backup\n\t\t$VERBOSE_ECHO \"cat acinclude.m4 > acinclude.m4.$$.backup\"\n\t\tcat acinclude.m4 > acinclude.m4.$$.backup\n\t    fi\n\t    $VERBOSE_ECHO \"cat \\\"$LIBTOOL_M4\\\" >> acinclude.m4\"\n\t    chmod u+w acinclude.m4\n\t    cat \"$LIBTOOL_M4\" >> acinclude.m4\n\n\t    # don't keep doing this\n\t    RUN_RECURSIVE=no\n\t    export RUN_RECURSIVE\n\t    untrap_abnormal\n\n\t    $ECHO\n\t    $ECHO \"Restarting the preparation steps with libtool macros in acinclude.m4\"\n\t    $VERBOSE_ECHO sh $AUTOGEN_SH \"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\" \"$9\"\n\t    sh \"$AUTOGEN_SH\" \"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\" \"$9\"\n\t    exit $?\n\tfi\n    fi\n}\n\n\n###########################\n# MANUAL_AUTOGEN FUNCTION #\n###########################\nmanual_autogen ( ) {\n\n    ##################################################\n    # Manual preparation steps taken are as follows: #\n    #   aclocal [-I m4]                              #\n    #   libtoolize --automake -c -f                  #\n    #   aclocal [-I m4]                              #\n    #   autoconf -f                                  #\n    #   autoheader                                   #\n    #   automake -a -c -f                            #\n    ##################################################\n\n    ###########\n    # aclocal #\n    ###########\n    $VERBOSE_ECHO \"$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS\"\n    aclocal_output=\"`$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS 2>&1`\"\n    ret=$?\n    $VERBOSE_ECHO \"$aclocal_output\"\n    if [ ! $ret = 0 ] ; then $ECHO \"ERROR: $ACLOCAL failed\" && exit 2 ; fi\n\n    ##############\n    # libtoolize #\n    ##############\n    need_libtoolize=no\n    for feature in AC_PROG_LIBTOOL LT_INIT ; do\n\t$VERBOSE_ECHO \"Searching for $feature in $CONFIGURE\"\n\tfound=\"`grep \\\"^$feature.*\\\" $CONFIGURE`\"\n\tif [ ! \"x$found\" = \"x\" ] ; then\n\t    need_libtoolize=yes\n\t    break\n\tfi\n    done\n    if [ \"x$need_libtoolize\" = \"xyes\" ] ; then\n\tif [ \"x$HAVE_LIBTOOLIZE\" = \"xyes\" ] ; then\n\t    $VERBOSE_ECHO \"$LIBTOOLIZE $LIBTOOLIZE_OPTIONS\"\n\t    libtoolize_output=\"`$LIBTOOLIZE $LIBTOOLIZE_OPTIONS 2>&1`\"\n\t    ret=$?\n\t    $VERBOSE_ECHO \"$libtoolize_output\"\n\t    \n\t    if [ ! $ret = 0 ] ; then $ECHO \"ERROR: $LIBTOOLIZE failed\" && exit 2 ; fi\n\telse\n\t    if [ \"x$HAVE_ALT_LIBTOOLIZE\" = \"xyes\" ] ; then\n\t\t$VERBOSE_ECHO \"$LIBTOOLIZE $ALT_LIBTOOLIZE_OPTIONS\"\n\t\tlibtoolize_output=\"`$LIBTOOLIZE $ALT_LIBTOOLIZE_OPTIONS 2>&1`\"\n\t\tret=$?\n\t\t$VERBOSE_ECHO \"$libtoolize_output\"\n\t\t\n\t\tif [ ! $ret = 0 ] ; then $ECHO \"ERROR: $LIBTOOLIZE failed\" && exit 2 ; fi\n\t    fi\n\tfi\n\n\t###########\n\t# aclocal #\n\t###########\n\t# re-run again as instructed by libtoolize\n\t$VERBOSE_ECHO \"$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS\"\n\taclocal_output=\"`$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS 2>&1`\"\n\tret=$?\n\t$VERBOSE_ECHO \"$aclocal_output\"\n\n\t# libtoolize might put ltmain.sh in the wrong place\n\tif test -f ltmain.sh ; then\n\t    if test ! -f \"${_aux_dir}/ltmain.sh\" ; then\n\t\t$ECHO\n\t\t$ECHO \"Warning:  $LIBTOOLIZE is creating ltmain.sh in the wrong directory\"\n\t\t$ECHO\n\t\t$ECHO \"Fortunately, the problem can be worked around by simply copying the\"\n\t\t$ECHO \"file to the appropriate location (${_aux_dir}/).  This has been done for you.\"\n\t\t$ECHO\n\t\t$VERBOSE_ECHO \"cp -p ltmain.sh \\\"${_aux_dir}/ltmain.sh\\\"\"\n\t\tcp -p ltmain.sh \"${_aux_dir}/ltmain.sh\"\n\t\t$ECHO $ECHO_N \"Continuing build preparation ... $ECHO_C\"\n\t    fi\n\tfi # ltmain.sh\n    fi # need_libtoolize\n\n    ############\n    # autoconf #\n    ############\n    $VERBOSE_ECHO\n    $VERBOSE_ECHO \"$AUTOCONF $AUTOCONF_OPTIONS\"\n    autoconf_output=\"`$AUTOCONF $AUTOCONF_OPTIONS 2>&1`\"\n    ret=$?\n    $VERBOSE_ECHO \"$autoconf_output\"\n\n    if [ ! $ret = 0 ] ; then\n\t# retry without the -f and check for usage of macros that are too new\n\tac2_59_macros=\"AC_C_RESTRICT AC_INCLUDES_DEFAULT AC_LANG_ASSERT AC_LANG_WERROR AS_SET_CATFILE\"\n\tac2_55_macros=\"AC_COMPILER_IFELSE AC_FUNC_MBRTOWC AC_HEADER_STDBOOL AC_LANG_CONFTEST AC_LANG_SOURCE AC_LANG_PROGRAM AC_LANG_CALL AC_LANG_FUNC_TRY_LINK AC_MSG_FAILURE AC_PREPROC_IFELSE\"\n\tac2_54_macros=\"AC_C_BACKSLASH_A AC_CONFIG_LIBOBJ_DIR AC_GNU_SOURCE AC_PROG_EGREP AC_PROG_FGREP AC_REPLACE_FNMATCH AC_FUNC_FNMATCH_GNU AC_FUNC_REALLOC AC_TYPE_MBSTATE_T\"\n\n\tmacros_to_search=\"\"\n\tac_major=\"`echo ${AUTOCONF_VERSION}. | cut -d. -f1 | sed 's/[^0-9]//g'`\"\n\tac_minor=\"`echo ${AUTOCONF_VERSION}. | cut -d. -f2 | sed 's/[^0-9]//g'`\"\n\t\n\tif [ $ac_major -lt 2 ] ; then\n\t    macros_to_search=\"$ac2_59_macros $ac2_55_macros $ac2_54_macros\"\n\telse\n\t    if [ $ac_minor -lt 54 ] ; then\n\t\tmacros_to_search=\"$ac2_59_macros $ac2_55_macros $ac2_54_macros\"\n\t    elif [ $ac_minor -lt 55 ] ; then\n\t\tmacros_to_search=\"$ac2_59_macros $ac2_55_macros\"\n\t    elif [ $ac_minor -lt 59 ] ; then\n\t\tmacros_to_search=\"$ac2_59_macros\"\n\t    fi\n\tfi\n\n\tconfigure_ac_macros=__none__\n\tfor feature in $macros_to_search ; do\n\t    $VERBOSE_ECHO \"Searching for $feature in $CONFIGURE\"\n\t    found=\"`grep \\\"^$feature.*\\\" $CONFIGURE`\"\n\t    if [ ! \"x$found\" = \"x\" ] ; then\n\t\tif [ \"x$configure_ac_macros\" = \"x__none__\" ] ; then\n\t\t    configure_ac_macros=\"$feature\"\n\t\telse\n\t\t    configure_ac_macros=\"$feature $configure_ac_macros\"\n\t\tfi\n\t    fi\n\tdone\n\tif [ ! \"x$configure_ac_macros\" = \"x__none__\" ] ; then\n\t    $ECHO\n\t    $ECHO \"Warning:  Unsupported macros were found in $CONFIGURE\"\n\t    $ECHO\n\t    $ECHO \"The `echo $CONFIGURE | basename` file was scanned in order to determine if any\"\n\t    $ECHO \"unsupported macros are used that exceed the minimum version\"\n\t    $ECHO \"settings specified within this file.  As such, the following macros\"\n\t    $ECHO \"should be removed from configure.ac or the version numbers in this\"\n\t    $ECHO \"file should be increased:\"\n\t    $ECHO\n\t    $ECHO \"$configure_ac_macros\"\n\t    $ECHO\n\t    $ECHO $ECHO_N \"Ignorantly continuing build preparation ... $ECHO_C\"\n\tfi\n\n\t###################\n\t# autoconf, retry #\n\t###################\n\t$VERBOSE_ECHO\n\t$VERBOSE_ECHO \"$AUTOCONF\"\n\tautoconf_output=\"`$AUTOCONF 2>&1`\"\n\tret=$?\n\t$VERBOSE_ECHO \"$autoconf_output\"\n\n\tif [ ! $ret = 0 ] ; then\n\t    # test if libtool is busted\n\t    libtool_failure \"$autoconf_output\"\n\n\t    # let the user know what went wrong\n\t    cat <<EOF\n$autoconf_output\nEOF\n\t    $ECHO \"ERROR: $AUTOCONF failed\"\n\t    exit 2\n\telse\n\t    # autoconf sans -f and possibly sans unsupported options succeed so warn verbosely\n\t    $ECHO\n\t    $ECHO \"Warning: autoconf seems to have succeeded by removing the following options:\"\n\t    $ECHO \"\tAUTOCONF_OPTIONS=\\\"$AUTOCONF_OPTIONS\\\"\"\n\t    $ECHO\n\t    $ECHO \"Removing those options should not be necessary and indicate some other\"\n\t    $ECHO \"problem with the build system.  The build preparation is highly suspect\"\n\t    $ECHO \"and may result in configuration or compilation errors.  Consider\"\n\t    if [ \"x$VERBOSE_ECHO\" = \"x:\" ] ; then\n\t\t$ECHO \"rerunning the build preparation with verbose output enabled.\"\n\t\t$ECHO \"\t$AUTOGEN_SH --verbose\"\n\t    else\n\t\t$ECHO \"reviewing the minimum GNU Autotools version settings contained in\"\n\t\t$ECHO \"this script along with the macros being used in your `echo $CONFIGURE | basename` file.\"\n\t    fi\n\t    $ECHO\n\t    $ECHO $ECHO_N \"Continuing build preparation ... $ECHO_C\"\n\tfi # autoconf ret = 0\n    fi # autoconf ret = 0\n\n    ##############\n    # autoheader #\n    ##############\n    need_autoheader=no\n    for feature in AM_CONFIG_HEADER AC_CONFIG_HEADER ; do\n\t$VERBOSE_ECHO \"Searching for $feature in $CONFIGURE\"\n\tfound=\"`grep \\\"^$feature.*\\\" $CONFIGURE`\"\n\tif [ ! \"x$found\" = \"x\" ] ; then\n\t    need_autoheader=yes\n\t    break\n\tfi\n    done\n    if [ \"x$need_autoheader\" = \"xyes\" ] ; then\n\t$VERBOSE_ECHO \"$AUTOHEADER $AUTOHEADER_OPTIONS\"\n\tautoheader_output=\"`$AUTOHEADER $AUTOHEADER_OPTIONS 2>&1`\"\n\tret=$?\n\t$VERBOSE_ECHO \"$autoheader_output\"\n\tif [ ! $ret = 0 ] ; then $ECHO \"ERROR: $AUTOHEADER failed\" && exit 2 ; fi\n    fi # need_autoheader\n\n    ############\n    # automake #\n    ############\n    need_automake=no\n    for feature in AM_INIT_AUTOMAKE ; do\n\t$VERBOSE_ECHO \"Searching for $feature in $CONFIGURE\"\n\tfound=\"`grep \\\"^$feature.*\\\" $CONFIGURE`\"\n\tif [ ! \"x$found\" = \"x\" ] ; then\n\t    need_automake=yes\n\t    break\n\tfi\n    done\n\n    if [ \"x$need_automake\" = \"xyes\" ] ; then\n\t$VERBOSE_ECHO \"$AUTOMAKE $AUTOMAKE_OPTIONS\"\n\tautomake_output=\"`$AUTOMAKE $AUTOMAKE_OPTIONS 2>&1`\"\n\tret=$?\n\t$VERBOSE_ECHO \"$automake_output\"\n\t\n\tif [ ! $ret = 0 ] ; then\n\n\t    ###################\n\t    # automake, retry #\n\t    ###################\n\t    $VERBOSE_ECHO\n\t    $VERBOSE_ECHO \"$AUTOMAKE $ALT_AUTOMAKE_OPTIONS\"\n\t    # retry without the -f\n\t    automake_output=\"`$AUTOMAKE $ALT_AUTOMAKE_OPTIONS 2>&1`\"\n\t    ret=$?\n\t    $VERBOSE_ECHO \"$automake_output\"\n\t    \n\t    if [ ! $ret = 0 ] ; then\n\t \t# test if libtool is busted\n\t\tlibtool_failure \"$automake_output\"\n\n\t\t# let the user know what went wrong\n\t\tcat <<EOF\n$automake_output\nEOF\n\t\t$ECHO \"ERROR: $AUTOMAKE failed\"\n\t\texit 2\n\t    fi # automake retry\n\tfi # automake ret = 0\n    fi # need_automake\n} # end of manual_autogen\n\n\n#####################################\n# RECURSIVE_MANUAL_AUTOGEN FUNCTION #\n#####################################\nrecursive_manual_autogen ( ) {\n\n    # run the build preparation steps manually for this directory\n    manual_autogen\n\n    # for projects using recursive configure, run the build\n    # preparation steps for the subdirectories.\n    if [ ! \"x$CONFIG_SUBDIRS\" = \"x\" ] ; then\n\t$VERBOSE_ECHO \"Recursively configuring the following directories:\"\n\t$VERBOSE_ECHO \"  $CONFIG_SUBDIRS\"\n\tfor dir in $CONFIG_SUBDIRS ; do\n\t    $VERBOSE_ECHO \"Processing recursive configure in $dir\"\n\t    cd \"$START_PATH\"\n\t    cd \"$dir\"\n\n\t    # new directory, prepare\n\t    initialize\n\n\t    # run manual steps for the subdir and any others below\n\t    recursive_manual_autogen\n\tdone\n    fi\n}\n\n\n################################\n# run manual preparation steps #\n################################\nif [ \"x$reconfigure_manually\" = \"xyes\" ] ; then\n    $ECHO\n    $ECHO $ECHO_N \"Preparing build ... $ECHO_C\"\n\n    recursive_manual_autogen\nfi\n\n\n#########################\n# restore and summarize #\n#########################\ncd \"$START_PATH\"\n\n# restore COPYING and INSTALL from backup if necessary\nrecursive_restore\n\n# make sure we end up with a configure script\nconfig_ac=\"`locate_configure_template`\"\nconfig=\"`echo $config_ac | sed 's/\\.ac$//' | sed 's/\\.in$//'`\"\nif [ \"x$config\" = \"x\" ] ; then\n    $VERBOSE_ECHO \"Could not locate the configure template (from `pwd`)\"\nfi\n\n# summarize\n$ECHO \"done\"\n$ECHO\nif test \"x$config\" = \"x\" -o ! -f \"$config\" ; then\n    $ECHO \"WARNING: The $PROJECT build system should now be prepared but there\"\n    $ECHO \"does not seem to be a resulting configure file.  This is unexpected\"\n    $ECHO \"and likely the result of an error.  You should run $NAME_OF_AUTOGEN\"\n    $ECHO \"with the --verbose option to get more details on a potential\"\n    $ECHO \"misconfiguration.\"\nelse\n    $ECHO \"The $PROJECT build system is now prepared.  To build here, run:\"\n    $ECHO \"  $config\"\n    $ECHO \"  make\"\nfi\n\n\n# Local Variables:\n# mode: sh\n# tab-width: 8\n# sh-basic-offset: 4\n# sh-indentation: 4\n# indent-tabs-mode: t\n# End:\n# ex: shiftwidth=4 tabstop=8\n"
  },
  {
    "path": "config.h.in",
    "content": "/* config.h.in.  Generated from configure.ac by autoheader.  */\n\n/* Define to 1 if you have the <ctype.h> header file. */\n#undef HAVE_CTYPE_H\n\n/* Define to 1 if you have the `getaddrinfo' function. */\n#undef HAVE_GETADDRINFO\n\n/* getaddrinfo_netdb */\n#undef HAVE_GETADDRINFO_NETDB\n\n/* Define to 1 if you have the `gethostbyname' function. */\n#undef HAVE_GETHOSTBYNAME\n\n/* Define to 1 if you have the `gethostbyname2' function. */\n#undef HAVE_GETHOSTBYNAME2\n\n/* gethostbyname2_netdb */\n#undef HAVE_GETHOSTBYNAME2_NETDB\n\n/* gethostbyname_netdb */\n#undef HAVE_GETHOSTBYNAME_NETDB\n\n/* Define to 1 if you have the `getipnodebyaddr' function. */\n#undef HAVE_GETIPNODEBYADDR\n\n/* getopt_h */\n#undef HAVE_GETOPT_H\n\n/* getopt_long */\n#undef HAVE_GETOPT_LONG\n\n/* Define to 1 if you have the `inet_ntop' function. */\n#undef HAVE_INET_NTOP\n\n/* Define to 1 if you have the <inttypes.h> header file. */\n#undef HAVE_INTTYPES_H\n\n/* libnsl */\n#undef HAVE_LIBNSL\n\n/* libsocket */\n#undef HAVE_LIBSOCKET\n\n/* Define to 1 if you have the <memory.h> header file. */\n#undef HAVE_MEMORY_H\n\n/* Define to 1 if you have the <netdb.h> header file. */\n#undef HAVE_NETDB_H\n\n/* sa_len */\n#undef HAVE_SA_LEN\n\n/* Define to 1 if you have the `socket' function. */\n#undef HAVE_SOCKET\n\n/* Define to 1 if you have the <stdint.h> header file. */\n#undef HAVE_STDINT_H\n\n/* Define to 1 if you have the <stdlib.h> header file. */\n#undef HAVE_STDLIB_H\n\n/* Define to 1 if you have the <strings.h> header file. */\n#undef HAVE_STRINGS_H\n\n/* Define to 1 if you have the <string.h> header file. */\n#undef HAVE_STRING_H\n\n/* Define to 1 if you have the `strstr' function. */\n#undef HAVE_STRSTR\n\n/* Define to 1 if you have the `strtol' function. */\n#undef HAVE_STRTOL\n\n/* Define to 1 if you have the `strtoul' function. */\n#undef HAVE_STRTOUL\n\n/* Define to 1 if you have the <sys/bitypes.h> header file. */\n#undef HAVE_SYS_BITYPES_H\n\n/* Define to 1 if you have the <sys/ioctl.h> header file. */\n#undef HAVE_SYS_IOCTL_H\n\n/* Define to 1 if you have the <sys/sockio.h> header file. */\n#undef HAVE_SYS_SOCKIO_H\n\n/* Define to 1 if you have the <sys/stat.h> header file. */\n#undef HAVE_SYS_STAT_H\n\n/* Define to 1 if you have the <sys/types.h> header file. */\n#undef HAVE_SYS_TYPES_H\n\n/* uint16_t */\n#undef HAVE_UINT16_T\n\n/* uint32_t */\n#undef HAVE_UINT32_T\n\n/* uint8_t */\n#undef HAVE_UINT8_T\n\n/* Define to 1 if you have the <unistd.h> header file. */\n#undef HAVE_UNISTD_H\n\n/* u_int16_t */\n#undef HAVE_U_INT16_T\n\n/* u_int32_t */\n#undef HAVE_U_INT32_T\n\n/* u_int8_t */\n#undef HAVE_U_INT8_T\n\n/* Name of package */\n#undef PACKAGE\n\n/* Define to the address where bug reports for this package should be sent. */\n#undef PACKAGE_BUGREPORT\n\n/* Define to the full name of this package. */\n#undef PACKAGE_NAME\n\n/* Define to the full name and version of this package. */\n#undef PACKAGE_STRING\n\n/* Define to the one symbol short name of this package. */\n#undef PACKAGE_TARNAME\n\n/* Define to the home page for this package. */\n#undef PACKAGE_URL\n\n/* Define to the version of this package. */\n#undef PACKAGE_VERSION\n\n/* Define to 1 if you have the ANSI C header files. */\n#undef STDC_HEADERS\n\n/* Version number of package */\n#undef VERSION\n"
  },
  {
    "path": "configure",
    "content": "#! /bin/sh\n# Guess values for system-dependent variables and create Makefiles.\n# Generated by GNU Autoconf 2.69.\n#\n#\n# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.\n#\n#\n# This configure script is free software; the Free Software Foundation\n# gives unlimited permission to copy, distribute and modify it.\n## -------------------- ##\n## M4sh Initialization. ##\n## -------------------- ##\n\n# Be more Bourne compatible\nDUALCASE=1; export DUALCASE # for MKS sh\nif test -n \"${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :\n  emulate sh\n  NULLCMD=:\n  # Pre-4.2 versions of Zsh do word splitting on ${1+\"$@\"}, which\n  # is contrary to our usage.  Disable this feature.\n  alias -g '${1+\"$@\"}'='\"$@\"'\n  setopt NO_GLOB_SUBST\nelse\n  case `(set -o) 2>/dev/null` in #(\n  *posix*) :\n    set -o posix ;; #(\n  *) :\n     ;;\nesac\nfi\n\n\nas_nl='\n'\nexport as_nl\n# Printing a long string crashes Solaris 7 /usr/bin/printf.\nas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\nas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo\nas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo\n# Prefer a ksh shell builtin over an external printf program on Solaris,\n# but without wasting forks for bash or zsh.\nif test -z \"$BASH_VERSION$ZSH_VERSION\" \\\n    && (test \"X`print -r -- $as_echo`\" = \"X$as_echo\") 2>/dev/null; then\n  as_echo='print -r --'\n  as_echo_n='print -rn --'\nelif (test \"X`printf %s $as_echo`\" = \"X$as_echo\") 2>/dev/null; then\n  as_echo='printf %s\\n'\n  as_echo_n='printf %s'\nelse\n  if test \"X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`\" = \"X-n $as_echo\"; then\n    as_echo_body='eval /usr/ucb/echo -n \"$1$as_nl\"'\n    as_echo_n='/usr/ucb/echo -n'\n  else\n    as_echo_body='eval expr \"X$1\" : \"X\\\\(.*\\\\)\"'\n    as_echo_n_body='eval\n      arg=$1;\n      case $arg in #(\n      *\"$as_nl\"*)\n\texpr \"X$arg\" : \"X\\\\(.*\\\\)$as_nl\";\n\targ=`expr \"X$arg\" : \".*$as_nl\\\\(.*\\\\)\"`;;\n      esac;\n      expr \"X$arg\" : \"X\\\\(.*\\\\)\" | tr -d \"$as_nl\"\n    '\n    export as_echo_n_body\n    as_echo_n='sh -c $as_echo_n_body as_echo'\n  fi\n  export as_echo_body\n  as_echo='sh -c $as_echo_body as_echo'\nfi\n\n# The user is always right.\nif test \"${PATH_SEPARATOR+set}\" != set; then\n  PATH_SEPARATOR=:\n  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {\n    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||\n      PATH_SEPARATOR=';'\n  }\nfi\n\n\n# IFS\n# We need space, tab and new line, in precisely that order.  Quoting is\n# there to prevent editors from complaining about space-tab.\n# (If _AS_PATH_WALK were called with IFS unset, it would disable word\n# splitting by setting IFS to empty value.)\nIFS=\" \"\"\t$as_nl\"\n\n# Find who we are.  Look in the path if we contain no directory separator.\nas_myself=\ncase $0 in #((\n  *[\\\\/]* ) as_myself=$0 ;;\n  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    test -r \"$as_dir/$0\" && as_myself=$as_dir/$0 && break\n  done\nIFS=$as_save_IFS\n\n     ;;\nesac\n# We did not find ourselves, most probably we were run as `sh COMMAND'\n# in which case we are not to be found in the path.\nif test \"x$as_myself\" = x; then\n  as_myself=$0\nfi\nif test ! -f \"$as_myself\"; then\n  $as_echo \"$as_myself: error: cannot find myself; rerun with an absolute file name\" >&2\n  exit 1\nfi\n\n# Unset variables that we do not need and which cause bugs (e.g. in\n# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the \"|| exit 1\"\n# suppresses any \"Segmentation fault\" message there.  '((' could\n# trigger a bug in pdksh 5.2.14.\nfor as_var in BASH_ENV ENV MAIL MAILPATH\ndo eval test x\\${$as_var+set} = xset \\\n  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :\ndone\nPS1='$ '\nPS2='> '\nPS4='+ '\n\n# NLS nuisances.\nLC_ALL=C\nexport LC_ALL\nLANGUAGE=C\nexport LANGUAGE\n\n# CDPATH.\n(unset CDPATH) >/dev/null 2>&1 && unset CDPATH\n\n# Use a proper internal environment variable to ensure we don't fall\n  # into an infinite loop, continuously re-executing ourselves.\n  if test x\"${_as_can_reexec}\" != xno && test \"x$CONFIG_SHELL\" != x; then\n    _as_can_reexec=no; export _as_can_reexec;\n    # We cannot yet assume a decent shell, so we have to provide a\n# neutralization value for shells without unset; and this also\n# works around shells that cannot unset nonexistent variables.\n# Preserve -v and -x to the replacement shell.\nBASH_ENV=/dev/null\nENV=/dev/null\n(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV\ncase $- in # ((((\n  *v*x* | *x*v* ) as_opts=-vx ;;\n  *v* ) as_opts=-v ;;\n  *x* ) as_opts=-x ;;\n  * ) as_opts= ;;\nesac\nexec $CONFIG_SHELL $as_opts \"$as_myself\" ${1+\"$@\"}\n# Admittedly, this is quite paranoid, since all the known shells bail\n# out after a failed `exec'.\n$as_echo \"$0: could not re-execute with $CONFIG_SHELL\" >&2\nas_fn_exit 255\n  fi\n  # We don't want this to propagate to other subprocesses.\n          { _as_can_reexec=; unset _as_can_reexec;}\nif test \"x$CONFIG_SHELL\" = x; then\n  as_bourne_compatible=\"if test -n \\\"\\${ZSH_VERSION+set}\\\" && (emulate sh) >/dev/null 2>&1; then :\n  emulate sh\n  NULLCMD=:\n  # Pre-4.2 versions of Zsh do word splitting on \\${1+\\\"\\$@\\\"}, which\n  # is contrary to our usage.  Disable this feature.\n  alias -g '\\${1+\\\"\\$@\\\"}'='\\\"\\$@\\\"'\n  setopt NO_GLOB_SUBST\nelse\n  case \\`(set -o) 2>/dev/null\\` in #(\n  *posix*) :\n    set -o posix ;; #(\n  *) :\n     ;;\nesac\nfi\n\"\n  as_required=\"as_fn_return () { (exit \\$1); }\nas_fn_success () { as_fn_return 0; }\nas_fn_failure () { as_fn_return 1; }\nas_fn_ret_success () { return 0; }\nas_fn_ret_failure () { return 1; }\n\nexitcode=0\nas_fn_success || { exitcode=1; echo as_fn_success failed.; }\nas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }\nas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }\nas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }\nif ( set x; as_fn_ret_success y && test x = \\\"\\$1\\\" ); then :\n\nelse\n  exitcode=1; echo positional parameters were not saved.\nfi\ntest x\\$exitcode = x0 || exit 1\ntest -x / || exit 1\"\n  as_suggested=\"  as_lineno_1=\";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested\" as_lineno_1a=\\$LINENO\n  as_lineno_2=\";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested\" as_lineno_2a=\\$LINENO\n  eval 'test \\\"x\\$as_lineno_1'\\$as_run'\\\" != \\\"x\\$as_lineno_2'\\$as_run'\\\" &&\n  test \\\"x\\`expr \\$as_lineno_1'\\$as_run' + 1\\`\\\" = \\\"x\\$as_lineno_2'\\$as_run'\\\"' || exit 1\ntest \\$(( 1 + 1 )) = 2 || exit 1\"\n  if (eval \"$as_required\") 2>/dev/null; then :\n  as_have_required=yes\nelse\n  as_have_required=no\nfi\n  if test x$as_have_required = xyes && (eval \"$as_suggested\") 2>/dev/null; then :\n\nelse\n  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nas_found=false\nfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n  as_found=:\n  case $as_dir in #(\n\t /*)\n\t   for as_base in sh bash ksh sh5; do\n\t     # Try only shells that exist, to save several forks.\n\t     as_shell=$as_dir/$as_base\n\t     if { test -f \"$as_shell\" || test -f \"$as_shell.exe\"; } &&\n\t\t    { $as_echo \"$as_bourne_compatible\"\"$as_required\" | as_run=a \"$as_shell\"; } 2>/dev/null; then :\n  CONFIG_SHELL=$as_shell as_have_required=yes\n\t\t   if { $as_echo \"$as_bourne_compatible\"\"$as_suggested\" | as_run=a \"$as_shell\"; } 2>/dev/null; then :\n  break 2\nfi\nfi\n\t   done;;\n       esac\n  as_found=false\ndone\n$as_found || { if { test -f \"$SHELL\" || test -f \"$SHELL.exe\"; } &&\n\t      { $as_echo \"$as_bourne_compatible\"\"$as_required\" | as_run=a \"$SHELL\"; } 2>/dev/null; then :\n  CONFIG_SHELL=$SHELL as_have_required=yes\nfi; }\nIFS=$as_save_IFS\n\n\n      if test \"x$CONFIG_SHELL\" != x; then :\n  export CONFIG_SHELL\n             # We cannot yet assume a decent shell, so we have to provide a\n# neutralization value for shells without unset; and this also\n# works around shells that cannot unset nonexistent variables.\n# Preserve -v and -x to the replacement shell.\nBASH_ENV=/dev/null\nENV=/dev/null\n(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV\ncase $- in # ((((\n  *v*x* | *x*v* ) as_opts=-vx ;;\n  *v* ) as_opts=-v ;;\n  *x* ) as_opts=-x ;;\n  * ) as_opts= ;;\nesac\nexec $CONFIG_SHELL $as_opts \"$as_myself\" ${1+\"$@\"}\n# Admittedly, this is quite paranoid, since all the known shells bail\n# out after a failed `exec'.\n$as_echo \"$0: could not re-execute with $CONFIG_SHELL\" >&2\nexit 255\nfi\n\n    if test x$as_have_required = xno; then :\n  $as_echo \"$0: This script requires a shell more modern than all\"\n  $as_echo \"$0: the shells that I found on your system.\"\n  if test x${ZSH_VERSION+set} = xset ; then\n    $as_echo \"$0: In particular, zsh $ZSH_VERSION has bugs and should\"\n    $as_echo \"$0: be upgraded to zsh 4.3.4 or later.\"\n  else\n    $as_echo \"$0: Please tell bug-autoconf@gnu.org about your system,\n$0: including any error possibly output before this\n$0: message. Then install a modern shell, or manually run\n$0: the script under such a shell if you do have one.\"\n  fi\n  exit 1\nfi\nfi\nfi\nSHELL=${CONFIG_SHELL-/bin/sh}\nexport SHELL\n# Unset more variables known to interfere with behavior of common tools.\nCLICOLOR_FORCE= GREP_OPTIONS=\nunset CLICOLOR_FORCE GREP_OPTIONS\n\n## --------------------- ##\n## M4sh Shell Functions. ##\n## --------------------- ##\n# as_fn_unset VAR\n# ---------------\n# Portably unset VAR.\nas_fn_unset ()\n{\n  { eval $1=; unset $1;}\n}\nas_unset=as_fn_unset\n\n# as_fn_set_status STATUS\n# -----------------------\n# Set $? to STATUS, without forking.\nas_fn_set_status ()\n{\n  return $1\n} # as_fn_set_status\n\n# as_fn_exit STATUS\n# -----------------\n# Exit the shell with STATUS, even in a \"trap 0\" or \"set -e\" context.\nas_fn_exit ()\n{\n  set +e\n  as_fn_set_status $1\n  exit $1\n} # as_fn_exit\n\n# as_fn_mkdir_p\n# -------------\n# Create \"$as_dir\" as a directory, including parents if necessary.\nas_fn_mkdir_p ()\n{\n\n  case $as_dir in #(\n  -*) as_dir=./$as_dir;;\n  esac\n  test -d \"$as_dir\" || eval $as_mkdir_p || {\n    as_dirs=\n    while :; do\n      case $as_dir in #(\n      *\\'*) as_qdir=`$as_echo \"$as_dir\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"`;; #'(\n      *) as_qdir=$as_dir;;\n      esac\n      as_dirs=\"'$as_qdir' $as_dirs\"\n      as_dir=`$as_dirname -- \"$as_dir\" ||\n$as_expr X\"$as_dir\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$as_dir\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$as_dir\" : 'X\\(//\\)$' \\| \\\n\t X\"$as_dir\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$as_dir\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n      test -d \"$as_dir\" && break\n    done\n    test -z \"$as_dirs\" || eval \"mkdir $as_dirs\"\n  } || test -d \"$as_dir\" || as_fn_error $? \"cannot create directory $as_dir\"\n\n\n} # as_fn_mkdir_p\n\n# as_fn_executable_p FILE\n# -----------------------\n# Test if FILE is an executable regular file.\nas_fn_executable_p ()\n{\n  test -f \"$1\" && test -x \"$1\"\n} # as_fn_executable_p\n# as_fn_append VAR VALUE\n# ----------------------\n# Append the text in VALUE to the end of the definition contained in VAR. Take\n# advantage of any shell optimizations that allow amortized linear growth over\n# repeated appends, instead of the typical quadratic growth present in naive\n# implementations.\nif (eval \"as_var=1; as_var+=2; test x\\$as_var = x12\") 2>/dev/null; then :\n  eval 'as_fn_append ()\n  {\n    eval $1+=\\$2\n  }'\nelse\n  as_fn_append ()\n  {\n    eval $1=\\$$1\\$2\n  }\nfi # as_fn_append\n\n# as_fn_arith ARG...\n# ------------------\n# Perform arithmetic evaluation on the ARGs, and store the result in the\n# global $as_val. Take advantage of shells that can avoid forks. The arguments\n# must be portable across $(()) and expr.\nif (eval \"test \\$(( 1 + 1 )) = 2\") 2>/dev/null; then :\n  eval 'as_fn_arith ()\n  {\n    as_val=$(( $* ))\n  }'\nelse\n  as_fn_arith ()\n  {\n    as_val=`expr \"$@\" || test $? -eq 1`\n  }\nfi # as_fn_arith\n\n\n# as_fn_error STATUS ERROR [LINENO LOG_FD]\n# ----------------------------------------\n# Output \"`basename $0`: error: ERROR\" to stderr. If LINENO and LOG_FD are\n# provided, also output the error to LOG_FD, referencing LINENO. Then exit the\n# script with STATUS, using 1 if that was 0.\nas_fn_error ()\n{\n  as_status=$1; test $as_status -eq 0 && as_status=1\n  if test \"$4\"; then\n    as_lineno=${as_lineno-\"$3\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n    $as_echo \"$as_me:${as_lineno-$LINENO}: error: $2\" >&$4\n  fi\n  $as_echo \"$as_me: error: $2\" >&2\n  as_fn_exit $as_status\n} # as_fn_error\n\nif expr a : '\\(a\\)' >/dev/null 2>&1 &&\n   test \"X`expr 00001 : '.*\\(...\\)'`\" = X001; then\n  as_expr=expr\nelse\n  as_expr=false\nfi\n\nif (basename -- /) >/dev/null 2>&1 && test \"X`basename -- / 2>&1`\" = \"X/\"; then\n  as_basename=basename\nelse\n  as_basename=false\nfi\n\nif (as_dir=`dirname -- /` && test \"X$as_dir\" = X/) >/dev/null 2>&1; then\n  as_dirname=dirname\nelse\n  as_dirname=false\nfi\n\nas_me=`$as_basename -- \"$0\" ||\n$as_expr X/\"$0\" : '.*/\\([^/][^/]*\\)/*$' \\| \\\n\t X\"$0\" : 'X\\(//\\)$' \\| \\\n\t X\"$0\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X/\"$0\" |\n    sed '/^.*\\/\\([^/][^/]*\\)\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\/\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\/\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n\n# Avoid depending upon Character Ranges.\nas_cr_letters='abcdefghijklmnopqrstuvwxyz'\nas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'\nas_cr_Letters=$as_cr_letters$as_cr_LETTERS\nas_cr_digits='0123456789'\nas_cr_alnum=$as_cr_Letters$as_cr_digits\n\n\n  as_lineno_1=$LINENO as_lineno_1a=$LINENO\n  as_lineno_2=$LINENO as_lineno_2a=$LINENO\n  eval 'test \"x$as_lineno_1'$as_run'\" != \"x$as_lineno_2'$as_run'\" &&\n  test \"x`expr $as_lineno_1'$as_run' + 1`\" = \"x$as_lineno_2'$as_run'\"' || {\n  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)\n  sed -n '\n    p\n    /[$]LINENO/=\n  ' <$as_myself |\n    sed '\n      s/[$]LINENO.*/&-/\n      t lineno\n      b\n      :lineno\n      N\n      :loop\n      s/[$]LINENO\\([^'$as_cr_alnum'_].*\\n\\)\\(.*\\)/\\2\\1\\2/\n      t loop\n      s/-\\n.*//\n    ' >$as_me.lineno &&\n  chmod +x \"$as_me.lineno\" ||\n    { $as_echo \"$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell\" >&2; as_fn_exit 1; }\n\n  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have\n  # already done that, so ensure we don't try to do so again and fall\n  # in an infinite loop.  This has already happened in practice.\n  _as_can_reexec=no; export _as_can_reexec\n  # Don't try to exec as it changes $[0], causing all sort of problems\n  # (the dirname of $[0] is not the place where we might find the\n  # original and so on.  Autoconf is especially sensitive to this).\n  . \"./$as_me.lineno\"\n  # Exit status is that of the last command.\n  exit\n}\n\nECHO_C= ECHO_N= ECHO_T=\ncase `echo -n x` in #(((((\n-n*)\n  case `echo 'xy\\c'` in\n  *c*) ECHO_T='\t';;\t# ECHO_T is single tab character.\n  xy)  ECHO_C='\\c';;\n  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null\n       ECHO_T='\t';;\n  esac;;\n*)\n  ECHO_N='-n';;\nesac\n\nrm -f conf$$ conf$$.exe conf$$.file\nif test -d conf$$.dir; then\n  rm -f conf$$.dir/conf$$.file\nelse\n  rm -f conf$$.dir\n  mkdir conf$$.dir 2>/dev/null\nfi\nif (echo >conf$$.file) 2>/dev/null; then\n  if ln -s conf$$.file conf$$ 2>/dev/null; then\n    as_ln_s='ln -s'\n    # ... but there are two gotchas:\n    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.\n    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.\n    # In both cases, we have to default to `cp -pR'.\n    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||\n      as_ln_s='cp -pR'\n  elif ln conf$$.file conf$$ 2>/dev/null; then\n    as_ln_s=ln\n  else\n    as_ln_s='cp -pR'\n  fi\nelse\n  as_ln_s='cp -pR'\nfi\nrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file\nrmdir conf$$.dir 2>/dev/null\n\nif mkdir -p . 2>/dev/null; then\n  as_mkdir_p='mkdir -p \"$as_dir\"'\nelse\n  test -d ./-p && rmdir ./-p\n  as_mkdir_p=false\nfi\n\nas_test_x='test -x'\nas_executable_p=as_fn_executable_p\n\n# Sed expression to map a string onto a valid CPP name.\nas_tr_cpp=\"eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'\"\n\n# Sed expression to map a string onto a valid variable name.\nas_tr_sh=\"eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'\"\n\n\ntest -n \"$DJDIR\" || exec 7<&0 </dev/null\nexec 6>&1\n\n# Name of the host.\n# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,\n# so uname gets run too.\nac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`\n\n#\n# Initializations.\n#\nac_default_prefix=/usr/local\nac_clean_files=\nac_config_libobj_dir=.\nLIBOBJS=\ncross_compiling=no\nsubdirs=\nMFLAGS=\nMAKEFLAGS=\n\n# Identity of this package.\nPACKAGE_NAME=\nPACKAGE_TARNAME=\nPACKAGE_VERSION=\nPACKAGE_STRING=\nPACKAGE_BUGREPORT=\nPACKAGE_URL=\n\nac_unique_file=\"include/sub.h\"\n# Factoring default headers for most tests.\nac_includes_default=\"\\\n#include <stdio.h>\n#ifdef HAVE_SYS_TYPES_H\n# include <sys/types.h>\n#endif\n#ifdef HAVE_SYS_STAT_H\n# include <sys/stat.h>\n#endif\n#ifdef STDC_HEADERS\n# include <stdlib.h>\n# include <stddef.h>\n#else\n# ifdef HAVE_STDLIB_H\n#  include <stdlib.h>\n# endif\n#endif\n#ifdef HAVE_STRING_H\n# if !defined STDC_HEADERS && defined HAVE_MEMORY_H\n#  include <memory.h>\n# endif\n# include <string.h>\n#endif\n#ifdef HAVE_STRINGS_H\n# include <strings.h>\n#endif\n#ifdef HAVE_INTTYPES_H\n# include <inttypes.h>\n#endif\n#ifdef HAVE_STDINT_H\n# include <stdint.h>\n#endif\n#ifdef HAVE_UNISTD_H\n# include <unistd.h>\n#endif\"\n\nac_subst_vars='am__EXEEXT_FALSE\nam__EXEEXT_TRUE\nLTLIBOBJS\nLIBOBJS\nEGREP\nGREP\nCPP\nam__fastdepCC_FALSE\nam__fastdepCC_TRUE\nCCDEPMODE\nam__nodep\nAMDEPBACKSLASH\nAMDEP_FALSE\nAMDEP_TRUE\nam__quote\nam__include\nDEPDIR\nOBJEXT\nEXEEXT\nac_ct_CC\nCPPFLAGS\nLDFLAGS\nCFLAGS\nCC\nam__untar\nam__tar\nAMTAR\nam__leading_dot\nSET_MAKE\nAWK\nmkdir_p\nMKDIR_P\nINSTALL_STRIP_PROGRAM\nSTRIP\ninstall_sh\nMAKEINFO\nAUTOHEADER\nAUTOMAKE\nAUTOCONF\nACLOCAL\nVERSION\nPACKAGE\nCYGPATH_W\nam__isrc\nINSTALL_DATA\nINSTALL_SCRIPT\nINSTALL_PROGRAM\ntarget_alias\nhost_alias\nbuild_alias\nLIBS\nECHO_T\nECHO_N\nECHO_C\nDEFS\nmandir\nlocaledir\nlibdir\npsdir\npdfdir\ndvidir\nhtmldir\ninfodir\ndocdir\noldincludedir\nincludedir\nlocalstatedir\nsharedstatedir\nsysconfdir\ndatadir\ndatarootdir\nlibexecdir\nsbindir\nbindir\nprogram_transform_name\nprefix\nexec_prefix\nPACKAGE_URL\nPACKAGE_BUGREPORT\nPACKAGE_STRING\nPACKAGE_VERSION\nPACKAGE_TARNAME\nPACKAGE_NAME\nPATH_SEPARATOR\nSHELL'\nac_subst_files=''\nac_user_opts='\nenable_option_checking\nenable_dependency_tracking\n'\n      ac_precious_vars='build_alias\nhost_alias\ntarget_alias\nCC\nCFLAGS\nLDFLAGS\nLIBS\nCPPFLAGS\nCPP'\n\n\n# Initialize some variables set by options.\nac_init_help=\nac_init_version=false\nac_unrecognized_opts=\nac_unrecognized_sep=\n# The variables have the same names as the options, with\n# dashes changed to underlines.\ncache_file=/dev/null\nexec_prefix=NONE\nno_create=\nno_recursion=\nprefix=NONE\nprogram_prefix=NONE\nprogram_suffix=NONE\nprogram_transform_name=s,x,x,\nsilent=\nsite=\nsrcdir=\nverbose=\nx_includes=NONE\nx_libraries=NONE\n\n# Installation directory options.\n# These are left unexpanded so users can \"make install exec_prefix=/foo\"\n# and all the variables that are supposed to be based on exec_prefix\n# by default will actually change.\n# Use braces instead of parens because sh, perl, etc. also accept them.\n# (The list follows the same order as the GNU Coding Standards.)\nbindir='${exec_prefix}/bin'\nsbindir='${exec_prefix}/sbin'\nlibexecdir='${exec_prefix}/libexec'\ndatarootdir='${prefix}/share'\ndatadir='${datarootdir}'\nsysconfdir='${prefix}/etc'\nsharedstatedir='${prefix}/com'\nlocalstatedir='${prefix}/var'\nincludedir='${prefix}/include'\noldincludedir='/usr/include'\ndocdir='${datarootdir}/doc/${PACKAGE}'\ninfodir='${datarootdir}/info'\nhtmldir='${docdir}'\ndvidir='${docdir}'\npdfdir='${docdir}'\npsdir='${docdir}'\nlibdir='${exec_prefix}/lib'\nlocaledir='${datarootdir}/locale'\nmandir='${datarootdir}/man'\n\nac_prev=\nac_dashdash=\nfor ac_option\ndo\n  # If the previous option needs an argument, assign it.\n  if test -n \"$ac_prev\"; then\n    eval $ac_prev=\\$ac_option\n    ac_prev=\n    continue\n  fi\n\n  case $ac_option in\n  *=?*) ac_optarg=`expr \"X$ac_option\" : '[^=]*=\\(.*\\)'` ;;\n  *=)   ac_optarg= ;;\n  *)    ac_optarg=yes ;;\n  esac\n\n  # Accept the important Cygnus configure options, so we can diagnose typos.\n\n  case $ac_dashdash$ac_option in\n  --)\n    ac_dashdash=yes ;;\n\n  -bindir | --bindir | --bindi | --bind | --bin | --bi)\n    ac_prev=bindir ;;\n  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)\n    bindir=$ac_optarg ;;\n\n  -build | --build | --buil | --bui | --bu)\n    ac_prev=build_alias ;;\n  -build=* | --build=* | --buil=* | --bui=* | --bu=*)\n    build_alias=$ac_optarg ;;\n\n  -cache-file | --cache-file | --cache-fil | --cache-fi \\\n  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)\n    ac_prev=cache_file ;;\n  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \\\n  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)\n    cache_file=$ac_optarg ;;\n\n  --config-cache | -C)\n    cache_file=config.cache ;;\n\n  -datadir | --datadir | --datadi | --datad)\n    ac_prev=datadir ;;\n  -datadir=* | --datadir=* | --datadi=* | --datad=*)\n    datadir=$ac_optarg ;;\n\n  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \\\n  | --dataroo | --dataro | --datar)\n    ac_prev=datarootdir ;;\n  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \\\n  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)\n    datarootdir=$ac_optarg ;;\n\n  -disable-* | --disable-*)\n    ac_useropt=`expr \"x$ac_option\" : 'x-*disable-\\(.*\\)'`\n    # Reject names that are not valid shell variable names.\n    expr \"x$ac_useropt\" : \".*[^-+._$as_cr_alnum]\" >/dev/null &&\n      as_fn_error $? \"invalid feature name: $ac_useropt\"\n    ac_useropt_orig=$ac_useropt\n    ac_useropt=`$as_echo \"$ac_useropt\" | sed 's/[-+.]/_/g'`\n    case $ac_user_opts in\n      *\"\n\"enable_$ac_useropt\"\n\"*) ;;\n      *) ac_unrecognized_opts=\"$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig\"\n\t ac_unrecognized_sep=', ';;\n    esac\n    eval enable_$ac_useropt=no ;;\n\n  -docdir | --docdir | --docdi | --doc | --do)\n    ac_prev=docdir ;;\n  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)\n    docdir=$ac_optarg ;;\n\n  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)\n    ac_prev=dvidir ;;\n  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)\n    dvidir=$ac_optarg ;;\n\n  -enable-* | --enable-*)\n    ac_useropt=`expr \"x$ac_option\" : 'x-*enable-\\([^=]*\\)'`\n    # Reject names that are not valid shell variable names.\n    expr \"x$ac_useropt\" : \".*[^-+._$as_cr_alnum]\" >/dev/null &&\n      as_fn_error $? \"invalid feature name: $ac_useropt\"\n    ac_useropt_orig=$ac_useropt\n    ac_useropt=`$as_echo \"$ac_useropt\" | sed 's/[-+.]/_/g'`\n    case $ac_user_opts in\n      *\"\n\"enable_$ac_useropt\"\n\"*) ;;\n      *) ac_unrecognized_opts=\"$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig\"\n\t ac_unrecognized_sep=', ';;\n    esac\n    eval enable_$ac_useropt=\\$ac_optarg ;;\n\n  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \\\n  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \\\n  | --exec | --exe | --ex)\n    ac_prev=exec_prefix ;;\n  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \\\n  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \\\n  | --exec=* | --exe=* | --ex=*)\n    exec_prefix=$ac_optarg ;;\n\n  -gas | --gas | --ga | --g)\n    # Obsolete; use --with-gas.\n    with_gas=yes ;;\n\n  -help | --help | --hel | --he | -h)\n    ac_init_help=long ;;\n  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)\n    ac_init_help=recursive ;;\n  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)\n    ac_init_help=short ;;\n\n  -host | --host | --hos | --ho)\n    ac_prev=host_alias ;;\n  -host=* | --host=* | --hos=* | --ho=*)\n    host_alias=$ac_optarg ;;\n\n  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)\n    ac_prev=htmldir ;;\n  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \\\n  | --ht=*)\n    htmldir=$ac_optarg ;;\n\n  -includedir | --includedir | --includedi | --included | --include \\\n  | --includ | --inclu | --incl | --inc)\n    ac_prev=includedir ;;\n  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \\\n  | --includ=* | --inclu=* | --incl=* | --inc=*)\n    includedir=$ac_optarg ;;\n\n  -infodir | --infodir | --infodi | --infod | --info | --inf)\n    ac_prev=infodir ;;\n  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)\n    infodir=$ac_optarg ;;\n\n  -libdir | --libdir | --libdi | --libd)\n    ac_prev=libdir ;;\n  -libdir=* | --libdir=* | --libdi=* | --libd=*)\n    libdir=$ac_optarg ;;\n\n  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \\\n  | --libexe | --libex | --libe)\n    ac_prev=libexecdir ;;\n  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \\\n  | --libexe=* | --libex=* | --libe=*)\n    libexecdir=$ac_optarg ;;\n\n  -localedir | --localedir | --localedi | --localed | --locale)\n    ac_prev=localedir ;;\n  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)\n    localedir=$ac_optarg ;;\n\n  -localstatedir | --localstatedir | --localstatedi | --localstated \\\n  | --localstate | --localstat | --localsta | --localst | --locals)\n    ac_prev=localstatedir ;;\n  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \\\n  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)\n    localstatedir=$ac_optarg ;;\n\n  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)\n    ac_prev=mandir ;;\n  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)\n    mandir=$ac_optarg ;;\n\n  -nfp | --nfp | --nf)\n    # Obsolete; use --without-fp.\n    with_fp=no ;;\n\n  -no-create | --no-create | --no-creat | --no-crea | --no-cre \\\n  | --no-cr | --no-c | -n)\n    no_create=yes ;;\n\n  -no-recursion | --no-recursion | --no-recursio | --no-recursi \\\n  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)\n    no_recursion=yes ;;\n\n  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \\\n  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \\\n  | --oldin | --oldi | --old | --ol | --o)\n    ac_prev=oldincludedir ;;\n  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \\\n  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \\\n  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)\n    oldincludedir=$ac_optarg ;;\n\n  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)\n    ac_prev=prefix ;;\n  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)\n    prefix=$ac_optarg ;;\n\n  -program-prefix | --program-prefix | --program-prefi | --program-pref \\\n  | --program-pre | --program-pr | --program-p)\n    ac_prev=program_prefix ;;\n  -program-prefix=* | --program-prefix=* | --program-prefi=* \\\n  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)\n    program_prefix=$ac_optarg ;;\n\n  -program-suffix | --program-suffix | --program-suffi | --program-suff \\\n  | --program-suf | --program-su | --program-s)\n    ac_prev=program_suffix ;;\n  -program-suffix=* | --program-suffix=* | --program-suffi=* \\\n  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)\n    program_suffix=$ac_optarg ;;\n\n  -program-transform-name | --program-transform-name \\\n  | --program-transform-nam | --program-transform-na \\\n  | --program-transform-n | --program-transform- \\\n  | --program-transform | --program-transfor \\\n  | --program-transfo | --program-transf \\\n  | --program-trans | --program-tran \\\n  | --progr-tra | --program-tr | --program-t)\n    ac_prev=program_transform_name ;;\n  -program-transform-name=* | --program-transform-name=* \\\n  | --program-transform-nam=* | --program-transform-na=* \\\n  | --program-transform-n=* | --program-transform-=* \\\n  | --program-transform=* | --program-transfor=* \\\n  | --program-transfo=* | --program-transf=* \\\n  | --program-trans=* | --program-tran=* \\\n  | --progr-tra=* | --program-tr=* | --program-t=*)\n    program_transform_name=$ac_optarg ;;\n\n  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)\n    ac_prev=pdfdir ;;\n  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)\n    pdfdir=$ac_optarg ;;\n\n  -psdir | --psdir | --psdi | --psd | --ps)\n    ac_prev=psdir ;;\n  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)\n    psdir=$ac_optarg ;;\n\n  -q | -quiet | --quiet | --quie | --qui | --qu | --q \\\n  | -silent | --silent | --silen | --sile | --sil)\n    silent=yes ;;\n\n  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)\n    ac_prev=sbindir ;;\n  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \\\n  | --sbi=* | --sb=*)\n    sbindir=$ac_optarg ;;\n\n  -sharedstatedir | --sharedstatedir | --sharedstatedi \\\n  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \\\n  | --sharedst | --shareds | --shared | --share | --shar \\\n  | --sha | --sh)\n    ac_prev=sharedstatedir ;;\n  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \\\n  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \\\n  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \\\n  | --sha=* | --sh=*)\n    sharedstatedir=$ac_optarg ;;\n\n  -site | --site | --sit)\n    ac_prev=site ;;\n  -site=* | --site=* | --sit=*)\n    site=$ac_optarg ;;\n\n  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)\n    ac_prev=srcdir ;;\n  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)\n    srcdir=$ac_optarg ;;\n\n  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \\\n  | --syscon | --sysco | --sysc | --sys | --sy)\n    ac_prev=sysconfdir ;;\n  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \\\n  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)\n    sysconfdir=$ac_optarg ;;\n\n  -target | --target | --targe | --targ | --tar | --ta | --t)\n    ac_prev=target_alias ;;\n  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)\n    target_alias=$ac_optarg ;;\n\n  -v | -verbose | --verbose | --verbos | --verbo | --verb)\n    verbose=yes ;;\n\n  -version | --version | --versio | --versi | --vers | -V)\n    ac_init_version=: ;;\n\n  -with-* | --with-*)\n    ac_useropt=`expr \"x$ac_option\" : 'x-*with-\\([^=]*\\)'`\n    # Reject names that are not valid shell variable names.\n    expr \"x$ac_useropt\" : \".*[^-+._$as_cr_alnum]\" >/dev/null &&\n      as_fn_error $? \"invalid package name: $ac_useropt\"\n    ac_useropt_orig=$ac_useropt\n    ac_useropt=`$as_echo \"$ac_useropt\" | sed 's/[-+.]/_/g'`\n    case $ac_user_opts in\n      *\"\n\"with_$ac_useropt\"\n\"*) ;;\n      *) ac_unrecognized_opts=\"$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig\"\n\t ac_unrecognized_sep=', ';;\n    esac\n    eval with_$ac_useropt=\\$ac_optarg ;;\n\n  -without-* | --without-*)\n    ac_useropt=`expr \"x$ac_option\" : 'x-*without-\\(.*\\)'`\n    # Reject names that are not valid shell variable names.\n    expr \"x$ac_useropt\" : \".*[^-+._$as_cr_alnum]\" >/dev/null &&\n      as_fn_error $? \"invalid package name: $ac_useropt\"\n    ac_useropt_orig=$ac_useropt\n    ac_useropt=`$as_echo \"$ac_useropt\" | sed 's/[-+.]/_/g'`\n    case $ac_user_opts in\n      *\"\n\"with_$ac_useropt\"\n\"*) ;;\n      *) ac_unrecognized_opts=\"$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig\"\n\t ac_unrecognized_sep=', ';;\n    esac\n    eval with_$ac_useropt=no ;;\n\n  --x)\n    # Obsolete; use --with-x.\n    with_x=yes ;;\n\n  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \\\n  | --x-incl | --x-inc | --x-in | --x-i)\n    ac_prev=x_includes ;;\n  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \\\n  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)\n    x_includes=$ac_optarg ;;\n\n  -x-libraries | --x-libraries | --x-librarie | --x-librari \\\n  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)\n    ac_prev=x_libraries ;;\n  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \\\n  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)\n    x_libraries=$ac_optarg ;;\n\n  -*) as_fn_error $? \"unrecognized option: \\`$ac_option'\nTry \\`$0 --help' for more information\"\n    ;;\n\n  *=*)\n    ac_envvar=`expr \"x$ac_option\" : 'x\\([^=]*\\)='`\n    # Reject names that are not valid shell variable names.\n    case $ac_envvar in #(\n      '' | [0-9]* | *[!_$as_cr_alnum]* )\n      as_fn_error $? \"invalid variable name: \\`$ac_envvar'\" ;;\n    esac\n    eval $ac_envvar=\\$ac_optarg\n    export $ac_envvar ;;\n\n  *)\n    # FIXME: should be removed in autoconf 3.0.\n    $as_echo \"$as_me: WARNING: you should use --build, --host, --target\" >&2\n    expr \"x$ac_option\" : \".*[^-._$as_cr_alnum]\" >/dev/null &&\n      $as_echo \"$as_me: WARNING: invalid host type: $ac_option\" >&2\n    : \"${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}\"\n    ;;\n\n  esac\ndone\n\nif test -n \"$ac_prev\"; then\n  ac_option=--`echo $ac_prev | sed 's/_/-/g'`\n  as_fn_error $? \"missing argument to $ac_option\"\nfi\n\nif test -n \"$ac_unrecognized_opts\"; then\n  case $enable_option_checking in\n    no) ;;\n    fatal) as_fn_error $? \"unrecognized options: $ac_unrecognized_opts\" ;;\n    *)     $as_echo \"$as_me: WARNING: unrecognized options: $ac_unrecognized_opts\" >&2 ;;\n  esac\nfi\n\n# Check all directory arguments for consistency.\nfor ac_var in\texec_prefix prefix bindir sbindir libexecdir datarootdir \\\n\t\tdatadir sysconfdir sharedstatedir localstatedir includedir \\\n\t\toldincludedir docdir infodir htmldir dvidir pdfdir psdir \\\n\t\tlibdir localedir mandir\ndo\n  eval ac_val=\\$$ac_var\n  # Remove trailing slashes.\n  case $ac_val in\n    */ )\n      ac_val=`expr \"X$ac_val\" : 'X\\(.*[^/]\\)' \\| \"X$ac_val\" : 'X\\(.*\\)'`\n      eval $ac_var=\\$ac_val;;\n  esac\n  # Be sure to have absolute directory names.\n  case $ac_val in\n    [\\\\/$]* | ?:[\\\\/]* )  continue;;\n    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;\n  esac\n  as_fn_error $? \"expected an absolute directory name for --$ac_var: $ac_val\"\ndone\n\n# There might be people who depend on the old broken behavior: `$host'\n# used to hold the argument of --host etc.\n# FIXME: To remove some day.\nbuild=$build_alias\nhost=$host_alias\ntarget=$target_alias\n\n# FIXME: To remove some day.\nif test \"x$host_alias\" != x; then\n  if test \"x$build_alias\" = x; then\n    cross_compiling=maybe\n  elif test \"x$build_alias\" != \"x$host_alias\"; then\n    cross_compiling=yes\n  fi\nfi\n\nac_tool_prefix=\ntest -n \"$host_alias\" && ac_tool_prefix=$host_alias-\n\ntest \"$silent\" = yes && exec 6>/dev/null\n\n\nac_pwd=`pwd` && test -n \"$ac_pwd\" &&\nac_ls_di=`ls -di .` &&\nac_pwd_ls_di=`cd \"$ac_pwd\" && ls -di .` ||\n  as_fn_error $? \"working directory cannot be determined\"\ntest \"X$ac_ls_di\" = \"X$ac_pwd_ls_di\" ||\n  as_fn_error $? \"pwd does not report name of working directory\"\n\n\n# Find the source files, if location was not specified.\nif test -z \"$srcdir\"; then\n  ac_srcdir_defaulted=yes\n  # Try the directory containing this script, then the parent directory.\n  ac_confdir=`$as_dirname -- \"$as_myself\" ||\n$as_expr X\"$as_myself\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$as_myself\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$as_myself\" : 'X\\(//\\)$' \\| \\\n\t X\"$as_myself\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$as_myself\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n  srcdir=$ac_confdir\n  if test ! -r \"$srcdir/$ac_unique_file\"; then\n    srcdir=..\n  fi\nelse\n  ac_srcdir_defaulted=no\nfi\nif test ! -r \"$srcdir/$ac_unique_file\"; then\n  test \"$ac_srcdir_defaulted\" = yes && srcdir=\"$ac_confdir or ..\"\n  as_fn_error $? \"cannot find sources ($ac_unique_file) in $srcdir\"\nfi\nac_msg=\"sources are in $srcdir, but \\`cd $srcdir' does not work\"\nac_abs_confdir=`(\n\tcd \"$srcdir\" && test -r \"./$ac_unique_file\" || as_fn_error $? \"$ac_msg\"\n\tpwd)`\n# When building in place, set srcdir=.\nif test \"$ac_abs_confdir\" = \"$ac_pwd\"; then\n  srcdir=.\nfi\n# Remove unnecessary trailing slashes from srcdir.\n# Double slashes in file names in object file debugging info\n# mess up M-x gdb in Emacs.\ncase $srcdir in\n*/) srcdir=`expr \"X$srcdir\" : 'X\\(.*[^/]\\)' \\| \"X$srcdir\" : 'X\\(.*\\)'`;;\nesac\nfor ac_var in $ac_precious_vars; do\n  eval ac_env_${ac_var}_set=\\${${ac_var}+set}\n  eval ac_env_${ac_var}_value=\\$${ac_var}\n  eval ac_cv_env_${ac_var}_set=\\${${ac_var}+set}\n  eval ac_cv_env_${ac_var}_value=\\$${ac_var}\ndone\n\n#\n# Report the --help message.\n#\nif test \"$ac_init_help\" = \"long\"; then\n  # Omit some internal or obsolete options to make the list less imposing.\n  # This message is too long to be a string in the A/UX 3.1 sh.\n  cat <<_ACEOF\n\\`configure' configures this package to adapt to many kinds of systems.\n\nUsage: $0 [OPTION]... [VAR=VALUE]...\n\nTo assign environment variables (e.g., CC, CFLAGS...), specify them as\nVAR=VALUE.  See below for descriptions of some of the useful variables.\n\nDefaults for the options are specified in brackets.\n\nConfiguration:\n  -h, --help              display this help and exit\n      --help=short        display options specific to this package\n      --help=recursive    display the short help of all the included packages\n  -V, --version           display version information and exit\n  -q, --quiet, --silent   do not print \\`checking ...' messages\n      --cache-file=FILE   cache test results in FILE [disabled]\n  -C, --config-cache      alias for \\`--cache-file=config.cache'\n  -n, --no-create         do not create output files\n      --srcdir=DIR        find the sources in DIR [configure dir or \\`..']\n\nInstallation directories:\n  --prefix=PREFIX         install architecture-independent files in PREFIX\n                          [$ac_default_prefix]\n  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX\n                          [PREFIX]\n\nBy default, \\`make install' will install all the files in\n\\`$ac_default_prefix/bin', \\`$ac_default_prefix/lib' etc.  You can specify\nan installation prefix other than \\`$ac_default_prefix' using \\`--prefix',\nfor instance \\`--prefix=\\$HOME'.\n\nFor better control, use the options below.\n\nFine tuning of the installation directories:\n  --bindir=DIR            user executables [EPREFIX/bin]\n  --sbindir=DIR           system admin executables [EPREFIX/sbin]\n  --libexecdir=DIR        program executables [EPREFIX/libexec]\n  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]\n  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]\n  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]\n  --libdir=DIR            object code libraries [EPREFIX/lib]\n  --includedir=DIR        C header files [PREFIX/include]\n  --oldincludedir=DIR     C header files for non-gcc [/usr/include]\n  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]\n  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]\n  --infodir=DIR           info documentation [DATAROOTDIR/info]\n  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]\n  --mandir=DIR            man documentation [DATAROOTDIR/man]\n  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]\n  --htmldir=DIR           html documentation [DOCDIR]\n  --dvidir=DIR            dvi documentation [DOCDIR]\n  --pdfdir=DIR            pdf documentation [DOCDIR]\n  --psdir=DIR             ps documentation [DOCDIR]\n_ACEOF\n\n  cat <<\\_ACEOF\n\nProgram names:\n  --program-prefix=PREFIX            prepend PREFIX to installed program names\n  --program-suffix=SUFFIX            append SUFFIX to installed program names\n  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names\n_ACEOF\nfi\n\nif test -n \"$ac_init_help\"; then\n\n  cat <<\\_ACEOF\n\nOptional Features:\n  --disable-option-checking  ignore unrecognized --enable/--with options\n  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)\n  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]\n  --disable-dependency-tracking  speeds up one-time build\n  --enable-dependency-tracking   do not reject slow dependency extractors\n\nSome influential environment variables:\n  CC          C compiler command\n  CFLAGS      C compiler flags\n  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a\n              nonstandard directory <lib dir>\n  LIBS        libraries to pass to the linker, e.g. -l<library>\n  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if\n              you have headers in a nonstandard directory <include dir>\n  CPP         C preprocessor\n\nUse these variables to override the choices made by `configure' or to help\nit to find libraries and programs with nonstandard names/locations.\n\nReport bugs to the package provider.\n_ACEOF\nac_status=$?\nfi\n\nif test \"$ac_init_help\" = \"recursive\"; then\n  # If there are subdirs, report their specific --help.\n  for ac_dir in : $ac_subdirs_all; do test \"x$ac_dir\" = x: && continue\n    test -d \"$ac_dir\" ||\n      { cd \"$srcdir\" && ac_pwd=`pwd` && srcdir=. && test -d \"$ac_dir\"; } ||\n      continue\n    ac_builddir=.\n\ncase \"$ac_dir\" in\n.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;\n*)\n  ac_dir_suffix=/`$as_echo \"$ac_dir\" | sed 's|^\\.[\\\\/]||'`\n  # A \"..\" for each directory in $ac_dir_suffix.\n  ac_top_builddir_sub=`$as_echo \"$ac_dir_suffix\" | sed 's|/[^\\\\/]*|/..|g;s|/||'`\n  case $ac_top_builddir_sub in\n  \"\") ac_top_builddir_sub=. ac_top_build_prefix= ;;\n  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;\n  esac ;;\nesac\nac_abs_top_builddir=$ac_pwd\nac_abs_builddir=$ac_pwd$ac_dir_suffix\n# for backward compatibility:\nac_top_builddir=$ac_top_build_prefix\n\ncase $srcdir in\n  .)  # We are building in place.\n    ac_srcdir=.\n    ac_top_srcdir=$ac_top_builddir_sub\n    ac_abs_top_srcdir=$ac_pwd ;;\n  [\\\\/]* | ?:[\\\\/]* )  # Absolute name.\n    ac_srcdir=$srcdir$ac_dir_suffix;\n    ac_top_srcdir=$srcdir\n    ac_abs_top_srcdir=$srcdir ;;\n  *) # Relative name.\n    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix\n    ac_top_srcdir=$ac_top_build_prefix$srcdir\n    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;\nesac\nac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix\n\n    cd \"$ac_dir\" || { ac_status=$?; continue; }\n    # Check for guested configure.\n    if test -f \"$ac_srcdir/configure.gnu\"; then\n      echo &&\n      $SHELL \"$ac_srcdir/configure.gnu\" --help=recursive\n    elif test -f \"$ac_srcdir/configure\"; then\n      echo &&\n      $SHELL \"$ac_srcdir/configure\" --help=recursive\n    else\n      $as_echo \"$as_me: WARNING: no configuration information is in $ac_dir\" >&2\n    fi || ac_status=$?\n    cd \"$ac_pwd\" || { ac_status=$?; break; }\n  done\nfi\n\ntest -n \"$ac_init_help\" && exit $ac_status\nif $ac_init_version; then\n  cat <<\\_ACEOF\nconfigure\ngenerated by GNU Autoconf 2.69\n\nCopyright (C) 2012 Free Software Foundation, Inc.\nThis configure script is free software; the Free Software Foundation\ngives unlimited permission to copy, distribute and modify it.\n_ACEOF\n  exit\nfi\n\n## ------------------------ ##\n## Autoconf initialization. ##\n## ------------------------ ##\n\n# ac_fn_c_try_compile LINENO\n# --------------------------\n# Try to compile conftest.$ac_ext, and return whether this succeeded.\nac_fn_c_try_compile ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  rm -f conftest.$ac_objext\n  if { { ac_try=\"$ac_compile\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_compile\") 2>conftest.err\n  ac_status=$?\n  if test -s conftest.err; then\n    grep -v '^ *+' conftest.err >conftest.er1\n    cat conftest.er1 >&5\n    mv -f conftest.er1 conftest.err\n  fi\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; } && {\n\t test -z \"$ac_c_werror_flag\" ||\n\t test ! -s conftest.err\n       } && test -s conftest.$ac_objext; then :\n  ac_retval=0\nelse\n  $as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n\tac_retval=1\nfi\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n  as_fn_set_status $ac_retval\n\n} # ac_fn_c_try_compile\n\n# ac_fn_c_try_cpp LINENO\n# ----------------------\n# Try to preprocess conftest.$ac_ext, and return whether this succeeded.\nac_fn_c_try_cpp ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  if { { ac_try=\"$ac_cpp conftest.$ac_ext\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_cpp conftest.$ac_ext\") 2>conftest.err\n  ac_status=$?\n  if test -s conftest.err; then\n    grep -v '^ *+' conftest.err >conftest.er1\n    cat conftest.er1 >&5\n    mv -f conftest.er1 conftest.err\n  fi\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; } > conftest.i && {\n\t test -z \"$ac_c_preproc_warn_flag$ac_c_werror_flag\" ||\n\t test ! -s conftest.err\n       }; then :\n  ac_retval=0\nelse\n  $as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n    ac_retval=1\nfi\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n  as_fn_set_status $ac_retval\n\n} # ac_fn_c_try_cpp\n\n# ac_fn_c_try_run LINENO\n# ----------------------\n# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes\n# that executables *can* be run.\nac_fn_c_try_run ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  if { { ac_try=\"$ac_link\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_link\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'\n  { { case \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_try\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }; }; then :\n  ac_retval=0\nelse\n  $as_echo \"$as_me: program exited with status $ac_status\" >&5\n       $as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n       ac_retval=$ac_status\nfi\n  rm -rf conftest.dSYM conftest_ipa8_conftest.oo\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n  as_fn_set_status $ac_retval\n\n} # ac_fn_c_try_run\n\n# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES\n# -------------------------------------------------------\n# Tests whether HEADER exists, giving a warning if it cannot be compiled using\n# the include files in INCLUDES and setting the cache variable VAR\n# accordingly.\nac_fn_c_check_header_mongrel ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  if eval \\${$3+:} false; then :\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $2\" >&5\n$as_echo_n \"checking for $2... \" >&6; }\nif eval \\${$3+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nfi\neval ac_res=\\$$3\n\t       { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_res\" >&5\n$as_echo \"$ac_res\" >&6; }\nelse\n  # Is the header compilable?\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking $2 usability\" >&5\n$as_echo_n \"checking $2 usability... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n$4\n#include <$2>\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_header_compiler=yes\nelse\n  ac_header_compiler=no\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler\" >&5\n$as_echo \"$ac_header_compiler\" >&6; }\n\n# Is the header present?\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking $2 presence\" >&5\n$as_echo_n \"checking $2 presence... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <$2>\n_ACEOF\nif ac_fn_c_try_cpp \"$LINENO\"; then :\n  ac_header_preproc=yes\nelse\n  ac_header_preproc=no\nfi\nrm -f conftest.err conftest.i conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc\" >&5\n$as_echo \"$ac_header_preproc\" >&6; }\n\n# So?  What about this header?\ncase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((\n  yes:no: )\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!\" >&5\n$as_echo \"$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!\" >&2;}\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result\" >&5\n$as_echo \"$as_me: WARNING: $2: proceeding with the compiler's result\" >&2;}\n    ;;\n  no:yes:* )\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled\" >&5\n$as_echo \"$as_me: WARNING: $2: present but cannot be compiled\" >&2;}\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?\" >&5\n$as_echo \"$as_me: WARNING: $2:     check for missing prerequisite headers?\" >&2;}\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation\" >&5\n$as_echo \"$as_me: WARNING: $2: see the Autoconf documentation\" >&2;}\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \\\"Present But Cannot Be Compiled\\\"\" >&5\n$as_echo \"$as_me: WARNING: $2:     section \\\"Present But Cannot Be Compiled\\\"\" >&2;}\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result\" >&5\n$as_echo \"$as_me: WARNING: $2: proceeding with the compiler's result\" >&2;}\n    ;;\nesac\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $2\" >&5\n$as_echo_n \"checking for $2... \" >&6; }\nif eval \\${$3+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  eval \"$3=\\$ac_header_compiler\"\nfi\neval ac_res=\\$$3\n\t       { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_res\" >&5\n$as_echo \"$ac_res\" >&6; }\nfi\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n\n} # ac_fn_c_check_header_mongrel\n\n# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES\n# -------------------------------------------------------\n# Tests whether HEADER exists and can be compiled using the include files in\n# INCLUDES, setting the cache variable VAR accordingly.\nac_fn_c_check_header_compile ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $2\" >&5\n$as_echo_n \"checking for $2... \" >&6; }\nif eval \\${$3+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n$4\n#include <$2>\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  eval \"$3=yes\"\nelse\n  eval \"$3=no\"\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\nfi\neval ac_res=\\$$3\n\t       { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_res\" >&5\n$as_echo \"$ac_res\" >&6; }\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n\n} # ac_fn_c_check_header_compile\n\n# ac_fn_c_try_link LINENO\n# -----------------------\n# Try to link conftest.$ac_ext, and return whether this succeeded.\nac_fn_c_try_link ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  rm -f conftest.$ac_objext conftest$ac_exeext\n  if { { ac_try=\"$ac_link\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_link\") 2>conftest.err\n  ac_status=$?\n  if test -s conftest.err; then\n    grep -v '^ *+' conftest.err >conftest.er1\n    cat conftest.er1 >&5\n    mv -f conftest.er1 conftest.err\n  fi\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; } && {\n\t test -z \"$ac_c_werror_flag\" ||\n\t test ! -s conftest.err\n       } && test -s conftest$ac_exeext && {\n\t test \"$cross_compiling\" = yes ||\n\t test -x conftest$ac_exeext\n       }; then :\n  ac_retval=0\nelse\n  $as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n\tac_retval=1\nfi\n  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information\n  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would\n  # interfere with the next link command; also delete a directory that is\n  # left behind by Apple's compiler.  We do this before executing the actions.\n  rm -rf conftest.dSYM conftest_ipa8_conftest.oo\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n  as_fn_set_status $ac_retval\n\n} # ac_fn_c_try_link\n\n# ac_fn_c_check_func LINENO FUNC VAR\n# ----------------------------------\n# Tests whether FUNC exists, setting the cache variable VAR accordingly\nac_fn_c_check_func ()\n{\n  as_lineno=${as_lineno-\"$1\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $2\" >&5\n$as_echo_n \"checking for $2... \" >&6; }\nif eval \\${$3+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n/* Define $2 to an innocuous variant, in case <limits.h> declares $2.\n   For example, HP-UX 11i <limits.h> declares gettimeofday.  */\n#define $2 innocuous_$2\n\n/* System header to define __stub macros and hopefully few prototypes,\n    which can conflict with char $2 (); below.\n    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since\n    <limits.h> exists even on freestanding compilers.  */\n\n#ifdef __STDC__\n# include <limits.h>\n#else\n# include <assert.h>\n#endif\n\n#undef $2\n\n/* Override any GCC internal prototype to avoid an error.\n   Use char because int might match the return type of a GCC\n   builtin and then its argument prototype would still apply.  */\n#ifdef __cplusplus\nextern \"C\"\n#endif\nchar $2 ();\n/* The GNU C library defines this for functions which it implements\n    to always fail with ENOSYS.  Some functions are actually named\n    something starting with __ and the normal name is an alias.  */\n#if defined __stub_$2 || defined __stub___$2\nchoke me\n#endif\n\nint\nmain ()\n{\nreturn $2 ();\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_link \"$LINENO\"; then :\n  eval \"$3=yes\"\nelse\n  eval \"$3=no\"\nfi\nrm -f core conftest.err conftest.$ac_objext \\\n    conftest$ac_exeext conftest.$ac_ext\nfi\neval ac_res=\\$$3\n\t       { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_res\" >&5\n$as_echo \"$ac_res\" >&6; }\n  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno\n\n} # ac_fn_c_check_func\ncat >config.log <<_ACEOF\nThis file contains any messages produced by compilers while\nrunning configure, to aid debugging if configure makes a mistake.\n\nIt was created by $as_me, which was\ngenerated by GNU Autoconf 2.69.  Invocation command line was\n\n  $ $0 $@\n\n_ACEOF\nexec 5>>config.log\n{\ncat <<_ASUNAME\n## --------- ##\n## Platform. ##\n## --------- ##\n\nhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`\nuname -m = `(uname -m) 2>/dev/null || echo unknown`\nuname -r = `(uname -r) 2>/dev/null || echo unknown`\nuname -s = `(uname -s) 2>/dev/null || echo unknown`\nuname -v = `(uname -v) 2>/dev/null || echo unknown`\n\n/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`\n/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`\n\n/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`\n/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`\n/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`\n/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`\n/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`\n/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`\n/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`\n\n_ASUNAME\n\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    $as_echo \"PATH: $as_dir\"\n  done\nIFS=$as_save_IFS\n\n} >&5\n\ncat >&5 <<_ACEOF\n\n\n## ----------- ##\n## Core tests. ##\n## ----------- ##\n\n_ACEOF\n\n\n# Keep a trace of the command line.\n# Strip out --no-create and --no-recursion so they do not pile up.\n# Strip out --silent because we don't want to record it for future runs.\n# Also quote any args containing shell meta-characters.\n# Make two passes to allow for proper duplicate-argument suppression.\nac_configure_args=\nac_configure_args0=\nac_configure_args1=\nac_must_keep_next=false\nfor ac_pass in 1 2\ndo\n  for ac_arg\n  do\n    case $ac_arg in\n    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;\n    -q | -quiet | --quiet | --quie | --qui | --qu | --q \\\n    | -silent | --silent | --silen | --sile | --sil)\n      continue ;;\n    *\\'*)\n      ac_arg=`$as_echo \"$ac_arg\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"` ;;\n    esac\n    case $ac_pass in\n    1) as_fn_append ac_configure_args0 \" '$ac_arg'\" ;;\n    2)\n      as_fn_append ac_configure_args1 \" '$ac_arg'\"\n      if test $ac_must_keep_next = true; then\n\tac_must_keep_next=false # Got value, back to normal.\n      else\n\tcase $ac_arg in\n\t  *=* | --config-cache | -C | -disable-* | --disable-* \\\n\t  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \\\n\t  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \\\n\t  | -with-* | --with-* | -without-* | --without-* | --x)\n\t    case \"$ac_configure_args0 \" in\n\t      \"$ac_configure_args1\"*\" '$ac_arg' \"* ) continue ;;\n\t    esac\n\t    ;;\n\t  -* ) ac_must_keep_next=true ;;\n\tesac\n      fi\n      as_fn_append ac_configure_args \" '$ac_arg'\"\n      ;;\n    esac\n  done\ndone\n{ ac_configure_args0=; unset ac_configure_args0;}\n{ ac_configure_args1=; unset ac_configure_args1;}\n\n# When interrupted or exit'd, cleanup temporary files, and complete\n# config.log.  We remove comments because anyway the quotes in there\n# would cause problems or look ugly.\n# WARNING: Use '\\'' to represent an apostrophe within the trap.\n# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.\ntrap 'exit_status=$?\n  # Save into config.log some information that might help in debugging.\n  {\n    echo\n\n    $as_echo \"## ---------------- ##\n## Cache variables. ##\n## ---------------- ##\"\n    echo\n    # The following way of writing the cache mishandles newlines in values,\n(\n  for ac_var in `(set) 2>&1 | sed -n '\\''s/^\\([a-zA-Z_][a-zA-Z0-9_]*\\)=.*/\\1/p'\\''`; do\n    eval ac_val=\\$$ac_var\n    case $ac_val in #(\n    *${as_nl}*)\n      case $ac_var in #(\n      *_cv_*) { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline\" >&5\n$as_echo \"$as_me: WARNING: cache variable $ac_var contains a newline\" >&2;} ;;\n      esac\n      case $ac_var in #(\n      _ | IFS | as_nl) ;; #(\n      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(\n      *) { eval $ac_var=; unset $ac_var;} ;;\n      esac ;;\n    esac\n  done\n  (set) 2>&1 |\n    case $as_nl`(ac_space='\\'' '\\''; set) 2>&1` in #(\n    *${as_nl}ac_space=\\ *)\n      sed -n \\\n\t\"s/'\\''/'\\''\\\\\\\\'\\'''\\''/g;\n\t  s/^\\\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\\\)=\\\\(.*\\\\)/\\\\1='\\''\\\\2'\\''/p\"\n      ;; #(\n    *)\n      sed -n \"/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p\"\n      ;;\n    esac |\n    sort\n)\n    echo\n\n    $as_echo \"## ----------------- ##\n## Output variables. ##\n## ----------------- ##\"\n    echo\n    for ac_var in $ac_subst_vars\n    do\n      eval ac_val=\\$$ac_var\n      case $ac_val in\n      *\\'\\''*) ac_val=`$as_echo \"$ac_val\" | sed \"s/'\\''/'\\''\\\\\\\\\\\\\\\\'\\'''\\''/g\"`;;\n      esac\n      $as_echo \"$ac_var='\\''$ac_val'\\''\"\n    done | sort\n    echo\n\n    if test -n \"$ac_subst_files\"; then\n      $as_echo \"## ------------------- ##\n## File substitutions. ##\n## ------------------- ##\"\n      echo\n      for ac_var in $ac_subst_files\n      do\n\teval ac_val=\\$$ac_var\n\tcase $ac_val in\n\t*\\'\\''*) ac_val=`$as_echo \"$ac_val\" | sed \"s/'\\''/'\\''\\\\\\\\\\\\\\\\'\\'''\\''/g\"`;;\n\tesac\n\t$as_echo \"$ac_var='\\''$ac_val'\\''\"\n      done | sort\n      echo\n    fi\n\n    if test -s confdefs.h; then\n      $as_echo \"## ----------- ##\n## confdefs.h. ##\n## ----------- ##\"\n      echo\n      cat confdefs.h\n      echo\n    fi\n    test \"$ac_signal\" != 0 &&\n      $as_echo \"$as_me: caught signal $ac_signal\"\n    $as_echo \"$as_me: exit $exit_status\"\n  } >&5\n  rm -f core *.core core.conftest.* &&\n    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&\n    exit $exit_status\n' 0\nfor ac_signal in 1 2 13 15; do\n  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal\ndone\nac_signal=0\n\n# confdefs.h avoids OS command line length limits that DEFS can exceed.\nrm -f -r conftest* confdefs.h\n\n$as_echo \"/* confdefs.h */\" > confdefs.h\n\n# Predefined preprocessor variables.\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_NAME \"$PACKAGE_NAME\"\n_ACEOF\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"\n_ACEOF\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_VERSION \"$PACKAGE_VERSION\"\n_ACEOF\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_STRING \"$PACKAGE_STRING\"\n_ACEOF\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"\n_ACEOF\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE_URL \"$PACKAGE_URL\"\n_ACEOF\n\n\n# Let the site file select an alternate cache file if it wants to.\n# Prefer an explicitly selected file to automatically selected ones.\nac_site_file1=NONE\nac_site_file2=NONE\nif test -n \"$CONFIG_SITE\"; then\n  # We do not want a PATH search for config.site.\n  case $CONFIG_SITE in #((\n    -*)  ac_site_file1=./$CONFIG_SITE;;\n    */*) ac_site_file1=$CONFIG_SITE;;\n    *)   ac_site_file1=./$CONFIG_SITE;;\n  esac\nelif test \"x$prefix\" != xNONE; then\n  ac_site_file1=$prefix/share/config.site\n  ac_site_file2=$prefix/etc/config.site\nelse\n  ac_site_file1=$ac_default_prefix/share/config.site\n  ac_site_file2=$ac_default_prefix/etc/config.site\nfi\nfor ac_site_file in \"$ac_site_file1\" \"$ac_site_file2\"\ndo\n  test \"x$ac_site_file\" = xNONE && continue\n  if test /dev/null != \"$ac_site_file\" && test -r \"$ac_site_file\"; then\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file\" >&5\n$as_echo \"$as_me: loading site script $ac_site_file\" >&6;}\n    sed 's/^/| /' \"$ac_site_file\" >&5\n    . \"$ac_site_file\" \\\n      || { { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"failed to load site script $ac_site_file\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\n  fi\ndone\n\nif test -r \"$cache_file\"; then\n  # Some versions of bash will fail to source /dev/null (special files\n  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.\n  if test /dev/null != \"$cache_file\" && test -f \"$cache_file\"; then\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: loading cache $cache_file\" >&5\n$as_echo \"$as_me: loading cache $cache_file\" >&6;}\n    case $cache_file in\n      [\\\\/]* | ?:[\\\\/]* ) . \"$cache_file\";;\n      *)                      . \"./$cache_file\";;\n    esac\n  fi\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: creating cache $cache_file\" >&5\n$as_echo \"$as_me: creating cache $cache_file\" >&6;}\n  >$cache_file\nfi\n\n# Check that the precious variables saved in the cache have kept the same\n# value.\nac_cache_corrupted=false\nfor ac_var in $ac_precious_vars; do\n  eval ac_old_set=\\$ac_cv_env_${ac_var}_set\n  eval ac_new_set=\\$ac_env_${ac_var}_set\n  eval ac_old_val=\\$ac_cv_env_${ac_var}_value\n  eval ac_new_val=\\$ac_env_${ac_var}_value\n  case $ac_old_set,$ac_new_set in\n    set,)\n      { $as_echo \"$as_me:${as_lineno-$LINENO}: error: \\`$ac_var' was set to \\`$ac_old_val' in the previous run\" >&5\n$as_echo \"$as_me: error: \\`$ac_var' was set to \\`$ac_old_val' in the previous run\" >&2;}\n      ac_cache_corrupted=: ;;\n    ,set)\n      { $as_echo \"$as_me:${as_lineno-$LINENO}: error: \\`$ac_var' was not set in the previous run\" >&5\n$as_echo \"$as_me: error: \\`$ac_var' was not set in the previous run\" >&2;}\n      ac_cache_corrupted=: ;;\n    ,);;\n    *)\n      if test \"x$ac_old_val\" != \"x$ac_new_val\"; then\n\t# differences in whitespace do not lead to failure.\n\tac_old_val_w=`echo x $ac_old_val`\n\tac_new_val_w=`echo x $ac_new_val`\n\tif test \"$ac_old_val_w\" != \"$ac_new_val_w\"; then\n\t  { $as_echo \"$as_me:${as_lineno-$LINENO}: error: \\`$ac_var' has changed since the previous run:\" >&5\n$as_echo \"$as_me: error: \\`$ac_var' has changed since the previous run:\" >&2;}\n\t  ac_cache_corrupted=:\n\telse\n\t  { $as_echo \"$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \\`$ac_var' since the previous run:\" >&5\n$as_echo \"$as_me: warning: ignoring whitespace changes in \\`$ac_var' since the previous run:\" >&2;}\n\t  eval $ac_var=\\$ac_old_val\n\tfi\n\t{ $as_echo \"$as_me:${as_lineno-$LINENO}:   former value:  \\`$ac_old_val'\" >&5\n$as_echo \"$as_me:   former value:  \\`$ac_old_val'\" >&2;}\n\t{ $as_echo \"$as_me:${as_lineno-$LINENO}:   current value: \\`$ac_new_val'\" >&5\n$as_echo \"$as_me:   current value: \\`$ac_new_val'\" >&2;}\n      fi;;\n  esac\n  # Pass precious variables to config.status.\n  if test \"$ac_new_set\" = set; then\n    case $ac_new_val in\n    *\\'*) ac_arg=$ac_var=`$as_echo \"$ac_new_val\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"` ;;\n    *) ac_arg=$ac_var=$ac_new_val ;;\n    esac\n    case \" $ac_configure_args \" in\n      *\" '$ac_arg' \"*) ;; # Avoid dups.  Use of quotes ensures accuracy.\n      *) as_fn_append ac_configure_args \" '$ac_arg'\" ;;\n    esac\n  fi\ndone\nif $ac_cache_corrupted; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build\" >&5\n$as_echo \"$as_me: error: changes in the environment can compromise the build\" >&2;}\n  as_fn_error $? \"run \\`make distclean' and/or \\`rm $cache_file' and start over\" \"$LINENO\" 5\nfi\n## -------------------- ##\n## Main body of script. ##\n## -------------------- ##\n\nac_ext=c\nac_cpp='$CPP $CPPFLAGS'\nac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'\nac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'\nac_compiler_gnu=$ac_cv_c_compiler_gnu\n\n\nac_config_headers=\"$ac_config_headers config.h\"\n\nam__api_version='1.11'\n\nac_aux_dir=\nfor ac_dir in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"; do\n  if test -f \"$ac_dir/install-sh\"; then\n    ac_aux_dir=$ac_dir\n    ac_install_sh=\"$ac_aux_dir/install-sh -c\"\n    break\n  elif test -f \"$ac_dir/install.sh\"; then\n    ac_aux_dir=$ac_dir\n    ac_install_sh=\"$ac_aux_dir/install.sh -c\"\n    break\n  elif test -f \"$ac_dir/shtool\"; then\n    ac_aux_dir=$ac_dir\n    ac_install_sh=\"$ac_aux_dir/shtool install -c\"\n    break\n  fi\ndone\nif test -z \"$ac_aux_dir\"; then\n  as_fn_error $? \"cannot find install-sh, install.sh, or shtool in \\\"$srcdir\\\" \\\"$srcdir/..\\\" \\\"$srcdir/../..\\\"\" \"$LINENO\" 5\nfi\n\n# These three variables are undocumented and unsupported,\n# and are intended to be withdrawn in a future Autoconf release.\n# They can cause serious problems if a builder's source tree is in a directory\n# whose full name contains unusual characters.\nac_config_guess=\"$SHELL $ac_aux_dir/config.guess\"  # Please don't use this var.\nac_config_sub=\"$SHELL $ac_aux_dir/config.sub\"  # Please don't use this var.\nac_configure=\"$SHELL $ac_aux_dir/configure\"  # Please don't use this var.\n\n\n# Find a good install program.  We prefer a C program (faster),\n# so one script is as good as another.  But avoid the broken or\n# incompatible versions:\n# SysV /etc/install, /usr/sbin/install\n# SunOS /usr/etc/install\n# IRIX /sbin/install\n# AIX /bin/install\n# AmigaOS /C/install, which installs bootblocks on floppy discs\n# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag\n# AFS /usr/afsws/bin/install, which mishandles nonexistent args\n# SVR4 /usr/ucb/install, which tries to use the nonexistent group \"staff\"\n# OS/2's system install, which has a completely different semantic\n# ./install, which can be erroneously created by make from ./install.sh.\n# Reject install programs that cannot install multiple files.\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install\" >&5\n$as_echo_n \"checking for a BSD-compatible install... \" >&6; }\nif test -z \"$INSTALL\"; then\nif ${ac_cv_path_install+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    # Account for people who put trailing slashes in PATH elements.\ncase $as_dir/ in #((\n  ./ | .// | /[cC]/* | \\\n  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \\\n  ?:[\\\\/]os2[\\\\/]install[\\\\/]* | ?:[\\\\/]OS2[\\\\/]INSTALL[\\\\/]* | \\\n  /usr/ucb/* ) ;;\n  *)\n    # OSF1 and SCO ODT 3.0 have their own names for install.\n    # Don't use installbsd from OSF since it installs stuff as root\n    # by default.\n    for ac_prog in ginstall scoinst install; do\n      for ac_exec_ext in '' $ac_executable_extensions; do\n\tif as_fn_executable_p \"$as_dir/$ac_prog$ac_exec_ext\"; then\n\t  if test $ac_prog = install &&\n\t    grep dspmsg \"$as_dir/$ac_prog$ac_exec_ext\" >/dev/null 2>&1; then\n\t    # AIX install.  It has an incompatible calling convention.\n\t    :\n\t  elif test $ac_prog = install &&\n\t    grep pwplus \"$as_dir/$ac_prog$ac_exec_ext\" >/dev/null 2>&1; then\n\t    # program-specific install script used by HP pwplus--don't use.\n\t    :\n\t  else\n\t    rm -rf conftest.one conftest.two conftest.dir\n\t    echo one > conftest.one\n\t    echo two > conftest.two\n\t    mkdir conftest.dir\n\t    if \"$as_dir/$ac_prog$ac_exec_ext\" -c conftest.one conftest.two \"`pwd`/conftest.dir\" &&\n\t      test -s conftest.one && test -s conftest.two &&\n\t      test -s conftest.dir/conftest.one &&\n\t      test -s conftest.dir/conftest.two\n\t    then\n\t      ac_cv_path_install=\"$as_dir/$ac_prog$ac_exec_ext -c\"\n\t      break 3\n\t    fi\n\t  fi\n\tfi\n      done\n    done\n    ;;\nesac\n\n  done\nIFS=$as_save_IFS\n\nrm -rf conftest.one conftest.two conftest.dir\n\nfi\n  if test \"${ac_cv_path_install+set}\" = set; then\n    INSTALL=$ac_cv_path_install\n  else\n    # As a last resort, use the slow shell script.  Don't cache a\n    # value for INSTALL within a source directory, because that will\n    # break other packages using the cache if that directory is\n    # removed, or if the value is a relative name.\n    INSTALL=$ac_install_sh\n  fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $INSTALL\" >&5\n$as_echo \"$INSTALL\" >&6; }\n\n# Use test -z because SunOS4 sh mishandles braces in ${var-val}.\n# It thinks the first close brace ends the variable substitution.\ntest -z \"$INSTALL_PROGRAM\" && INSTALL_PROGRAM='${INSTALL}'\n\ntest -z \"$INSTALL_SCRIPT\" && INSTALL_SCRIPT='${INSTALL}'\n\ntest -z \"$INSTALL_DATA\" && INSTALL_DATA='${INSTALL} -m 644'\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether build environment is sane\" >&5\n$as_echo_n \"checking whether build environment is sane... \" >&6; }\n# Just in case\nsleep 1\necho timestamp > conftest.file\n# Reject unsafe characters in $srcdir or the absolute working directory\n# name.  Accept space and tab only in the latter.\nam_lf='\n'\ncase `pwd` in\n  *[\\\\\\\"\\#\\$\\&\\'\\`$am_lf]*)\n    as_fn_error $? \"unsafe absolute working directory name\" \"$LINENO\" 5;;\nesac\ncase $srcdir in\n  *[\\\\\\\"\\#\\$\\&\\'\\`$am_lf\\ \\\t]*)\n    as_fn_error $? \"unsafe srcdir value: \\`$srcdir'\" \"$LINENO\" 5;;\nesac\n\n# Do `set' in a subshell so we don't clobber the current shell's\n# arguments.  Must try -L first in case configure is actually a\n# symlink; some systems play weird games with the mod time of symlinks\n# (eg FreeBSD returns the mod time of the symlink's containing\n# directory).\nif (\n   set X `ls -Lt \"$srcdir/configure\" conftest.file 2> /dev/null`\n   if test \"$*\" = \"X\"; then\n      # -L didn't work.\n      set X `ls -t \"$srcdir/configure\" conftest.file`\n   fi\n   rm -f conftest.file\n   if test \"$*\" != \"X $srcdir/configure conftest.file\" \\\n      && test \"$*\" != \"X conftest.file $srcdir/configure\"; then\n\n      # If neither matched, then we have a broken ls.  This can happen\n      # if, for instance, CONFIG_SHELL is bash and it inherits a\n      # broken ls alias from the environment.  This has actually\n      # happened.  Such a system could not be considered \"sane\".\n      as_fn_error $? \"ls -t appears to fail.  Make sure there is not a broken\nalias in your environment\" \"$LINENO\" 5\n   fi\n\n   test \"$2\" = conftest.file\n   )\nthen\n   # Ok.\n   :\nelse\n   as_fn_error $? \"newly created file is older than distributed files!\nCheck your system clock\" \"$LINENO\" 5\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\ntest \"$program_prefix\" != NONE &&\n  program_transform_name=\"s&^&$program_prefix&;$program_transform_name\"\n# Use a double $ so make ignores it.\ntest \"$program_suffix\" != NONE &&\n  program_transform_name=\"s&\\$&$program_suffix&;$program_transform_name\"\n# Double any \\ or $.\n# By default was `s,x,x', remove it if useless.\nac_script='s/[\\\\$]/&&/g;s/;s,x,x,$//'\nprogram_transform_name=`$as_echo \"$program_transform_name\" | sed \"$ac_script\"`\n\n# expand $ac_aux_dir to an absolute path\nam_aux_dir=`cd $ac_aux_dir && pwd`\n\nif test x\"${MISSING+set}\" != xset; then\n  case $am_aux_dir in\n  *\\ * | *\\\t*)\n    MISSING=\"\\${SHELL} \\\"$am_aux_dir/missing\\\"\" ;;\n  *)\n    MISSING=\"\\${SHELL} $am_aux_dir/missing\" ;;\n  esac\nfi\n# Use eval to expand $SHELL\nif eval \"$MISSING --run true\"; then\n  am_missing_run=\"$MISSING --run \"\nelse\n  am_missing_run=\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: \\`missing' script is too old or missing\" >&5\n$as_echo \"$as_me: WARNING: \\`missing' script is too old or missing\" >&2;}\nfi\n\nif test x\"${install_sh}\" != xset; then\n  case $am_aux_dir in\n  *\\ * | *\\\t*)\n    install_sh=\"\\${SHELL} '$am_aux_dir/install-sh'\" ;;\n  *)\n    install_sh=\"\\${SHELL} $am_aux_dir/install-sh\"\n  esac\nfi\n\n# Installed binaries are usually stripped using `strip' when the user\n# run `make install-strip'.  However `strip' might not be the right\n# tool to use in cross-compilation environments, therefore Automake\n# will honor the `STRIP' environment variable to overrule this program.\nif test \"$cross_compiling\" != no; then\n  if test -n \"$ac_tool_prefix\"; then\n  # Extract the first word of \"${ac_tool_prefix}strip\", so it can be a program name with args.\nset dummy ${ac_tool_prefix}strip; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_STRIP+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$STRIP\"; then\n  ac_cv_prog_STRIP=\"$STRIP\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_STRIP=\"${ac_tool_prefix}strip\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nSTRIP=$ac_cv_prog_STRIP\nif test -n \"$STRIP\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $STRIP\" >&5\n$as_echo \"$STRIP\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\nfi\nif test -z \"$ac_cv_prog_STRIP\"; then\n  ac_ct_STRIP=$STRIP\n  # Extract the first word of \"strip\", so it can be a program name with args.\nset dummy strip; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_ac_ct_STRIP+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$ac_ct_STRIP\"; then\n  ac_cv_prog_ac_ct_STRIP=\"$ac_ct_STRIP\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_ac_ct_STRIP=\"strip\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP\nif test -n \"$ac_ct_STRIP\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP\" >&5\n$as_echo \"$ac_ct_STRIP\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n  if test \"x$ac_ct_STRIP\" = x; then\n    STRIP=\":\"\n  else\n    case $cross_compiling:$ac_tool_warned in\nyes:)\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet\" >&5\n$as_echo \"$as_me: WARNING: using cross tools not prefixed with host triplet\" >&2;}\nac_tool_warned=yes ;;\nesac\n    STRIP=$ac_ct_STRIP\n  fi\nelse\n  STRIP=\"$ac_cv_prog_STRIP\"\nfi\n\nfi\nINSTALL_STRIP_PROGRAM=\"\\$(install_sh) -c -s\"\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p\" >&5\n$as_echo_n \"checking for a thread-safe mkdir -p... \" >&6; }\nif test -z \"$MKDIR_P\"; then\n  if ${ac_cv_path_mkdir+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_prog in mkdir gmkdir; do\n\t for ac_exec_ext in '' $ac_executable_extensions; do\n\t   as_fn_executable_p \"$as_dir/$ac_prog$ac_exec_ext\" || continue\n\t   case `\"$as_dir/$ac_prog$ac_exec_ext\" --version 2>&1` in #(\n\t     'mkdir (GNU coreutils) '* | \\\n\t     'mkdir (coreutils) '* | \\\n\t     'mkdir (fileutils) '4.1*)\n\t       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext\n\t       break 3;;\n\t   esac\n\t done\n       done\n  done\nIFS=$as_save_IFS\n\nfi\n\n  test -d ./--version && rmdir ./--version\n  if test \"${ac_cv_path_mkdir+set}\" = set; then\n    MKDIR_P=\"$ac_cv_path_mkdir -p\"\n  else\n    # As a last resort, use the slow shell script.  Don't cache a\n    # value for MKDIR_P within a source directory, because that will\n    # break other packages using the cache if that directory is\n    # removed, or if the value is a relative name.\n    MKDIR_P=\"$ac_install_sh -d\"\n  fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $MKDIR_P\" >&5\n$as_echo \"$MKDIR_P\" >&6; }\n\nmkdir_p=\"$MKDIR_P\"\ncase $mkdir_p in\n  [\\\\/$]* | ?:[\\\\/]*) ;;\n  */*) mkdir_p=\"\\$(top_builddir)/$mkdir_p\" ;;\nesac\n\nfor ac_prog in gawk mawk nawk awk\ndo\n  # Extract the first word of \"$ac_prog\", so it can be a program name with args.\nset dummy $ac_prog; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_AWK+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$AWK\"; then\n  ac_cv_prog_AWK=\"$AWK\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_AWK=\"$ac_prog\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nAWK=$ac_cv_prog_AWK\nif test -n \"$AWK\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $AWK\" >&5\n$as_echo \"$AWK\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\n  test -n \"$AWK\" && break\ndone\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \\$(MAKE)\" >&5\n$as_echo_n \"checking whether ${MAKE-make} sets \\$(MAKE)... \" >&6; }\nset x ${MAKE-make}\nac_make=`$as_echo \"$2\" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`\nif eval \\${ac_cv_prog_make_${ac_make}_set+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat >conftest.make <<\\_ACEOF\nSHELL = /bin/sh\nall:\n\t@echo '@@@%%%=$(MAKE)=@@@%%%'\n_ACEOF\n# GNU make sometimes prints \"make[1]: Entering ...\", which would confuse us.\ncase `${MAKE-make} -f conftest.make 2>/dev/null` in\n  *@@@%%%=?*=@@@%%%*)\n    eval ac_cv_prog_make_${ac_make}_set=yes;;\n  *)\n    eval ac_cv_prog_make_${ac_make}_set=no;;\nesac\nrm -f conftest.make\nfi\nif eval test \\$ac_cv_prog_make_${ac_make}_set = yes; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n  SET_MAKE=\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\n  SET_MAKE=\"MAKE=${MAKE-make}\"\nfi\n\nrm -rf .tst 2>/dev/null\nmkdir .tst 2>/dev/null\nif test -d .tst; then\n  am__leading_dot=.\nelse\n  am__leading_dot=_\nfi\nrmdir .tst 2>/dev/null\n\nif test \"`cd $srcdir && pwd`\" != \"`pwd`\"; then\n  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output\n  # is not polluted with repeated \"-I.\"\n  am__isrc=' -I$(srcdir)'\n  # test to see if srcdir already configured\n  if test -f $srcdir/config.status; then\n    as_fn_error $? \"source directory already configured; run \\\"make distclean\\\" there first\" \"$LINENO\" 5\n  fi\nfi\n\n# test whether we have cygpath\nif test -z \"$CYGPATH_W\"; then\n  if (cygpath --version) >/dev/null 2>/dev/null; then\n    CYGPATH_W='cygpath -w'\n  else\n    CYGPATH_W=echo\n  fi\nfi\n\n\n# Define the identity of the package.\n PACKAGE=sipcalc\n VERSION=1.1.6\n\n\ncat >>confdefs.h <<_ACEOF\n#define PACKAGE \"$PACKAGE\"\n_ACEOF\n\n\ncat >>confdefs.h <<_ACEOF\n#define VERSION \"$VERSION\"\n_ACEOF\n\n# Some tools Automake needs.\n\nACLOCAL=${ACLOCAL-\"${am_missing_run}aclocal-${am__api_version}\"}\n\n\nAUTOCONF=${AUTOCONF-\"${am_missing_run}autoconf\"}\n\n\nAUTOMAKE=${AUTOMAKE-\"${am_missing_run}automake-${am__api_version}\"}\n\n\nAUTOHEADER=${AUTOHEADER-\"${am_missing_run}autoheader\"}\n\n\nMAKEINFO=${MAKEINFO-\"${am_missing_run}makeinfo\"}\n\n# We need awk for the \"check\" target.  The system \"awk\" is bad on\n# some platforms.\n# Always define AMTAR for backward compatibility.  Yes, it's still used\n# in the wild :-(  We should find a proper way to deprecate it ...\nAMTAR='$${TAR-tar}'\n\nam__tar='$${TAR-tar} chof - \"$$tardir\"' am__untar='$${TAR-tar} xf -'\n\n\n\n\n\nac_ext=c\nac_cpp='$CPP $CPPFLAGS'\nac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'\nac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'\nac_compiler_gnu=$ac_cv_c_compiler_gnu\nif test -n \"$ac_tool_prefix\"; then\n  # Extract the first word of \"${ac_tool_prefix}gcc\", so it can be a program name with args.\nset dummy ${ac_tool_prefix}gcc; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$CC\"; then\n  ac_cv_prog_CC=\"$CC\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_CC=\"${ac_tool_prefix}gcc\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nCC=$ac_cv_prog_CC\nif test -n \"$CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $CC\" >&5\n$as_echo \"$CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\nfi\nif test -z \"$ac_cv_prog_CC\"; then\n  ac_ct_CC=$CC\n  # Extract the first word of \"gcc\", so it can be a program name with args.\nset dummy gcc; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_ac_ct_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$ac_ct_CC\"; then\n  ac_cv_prog_ac_ct_CC=\"$ac_ct_CC\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_ac_ct_CC=\"gcc\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nac_ct_CC=$ac_cv_prog_ac_ct_CC\nif test -n \"$ac_ct_CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC\" >&5\n$as_echo \"$ac_ct_CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n  if test \"x$ac_ct_CC\" = x; then\n    CC=\"\"\n  else\n    case $cross_compiling:$ac_tool_warned in\nyes:)\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet\" >&5\n$as_echo \"$as_me: WARNING: using cross tools not prefixed with host triplet\" >&2;}\nac_tool_warned=yes ;;\nesac\n    CC=$ac_ct_CC\n  fi\nelse\n  CC=\"$ac_cv_prog_CC\"\nfi\n\nif test -z \"$CC\"; then\n          if test -n \"$ac_tool_prefix\"; then\n    # Extract the first word of \"${ac_tool_prefix}cc\", so it can be a program name with args.\nset dummy ${ac_tool_prefix}cc; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$CC\"; then\n  ac_cv_prog_CC=\"$CC\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_CC=\"${ac_tool_prefix}cc\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nCC=$ac_cv_prog_CC\nif test -n \"$CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $CC\" >&5\n$as_echo \"$CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\n  fi\nfi\nif test -z \"$CC\"; then\n  # Extract the first word of \"cc\", so it can be a program name with args.\nset dummy cc; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$CC\"; then\n  ac_cv_prog_CC=\"$CC\" # Let the user override the test.\nelse\n  ac_prog_rejected=no\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    if test \"$as_dir/$ac_word$ac_exec_ext\" = \"/usr/ucb/cc\"; then\n       ac_prog_rejected=yes\n       continue\n     fi\n    ac_cv_prog_CC=\"cc\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nif test $ac_prog_rejected = yes; then\n  # We found a bogon in the path, so make sure we never use it.\n  set dummy $ac_cv_prog_CC\n  shift\n  if test $# != 0; then\n    # We chose a different compiler from the bogus one.\n    # However, it has the same basename, so the bogon will be chosen\n    # first if we set CC to just the basename; use the full file name.\n    shift\n    ac_cv_prog_CC=\"$as_dir/$ac_word${1+' '}$@\"\n  fi\nfi\nfi\nfi\nCC=$ac_cv_prog_CC\nif test -n \"$CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $CC\" >&5\n$as_echo \"$CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\nfi\nif test -z \"$CC\"; then\n  if test -n \"$ac_tool_prefix\"; then\n  for ac_prog in cl.exe\n  do\n    # Extract the first word of \"$ac_tool_prefix$ac_prog\", so it can be a program name with args.\nset dummy $ac_tool_prefix$ac_prog; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$CC\"; then\n  ac_cv_prog_CC=\"$CC\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_CC=\"$ac_tool_prefix$ac_prog\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nCC=$ac_cv_prog_CC\nif test -n \"$CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $CC\" >&5\n$as_echo \"$CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\n    test -n \"$CC\" && break\n  done\nfi\nif test -z \"$CC\"; then\n  ac_ct_CC=$CC\n  for ac_prog in cl.exe\ndo\n  # Extract the first word of \"$ac_prog\", so it can be a program name with args.\nset dummy $ac_prog; ac_word=$2\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $ac_word\" >&5\n$as_echo_n \"checking for $ac_word... \" >&6; }\nif ${ac_cv_prog_ac_ct_CC+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -n \"$ac_ct_CC\"; then\n  ac_cv_prog_ac_ct_CC=\"$ac_ct_CC\" # Let the user override the test.\nelse\nas_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_exec_ext in '' $ac_executable_extensions; do\n  if as_fn_executable_p \"$as_dir/$ac_word$ac_exec_ext\"; then\n    ac_cv_prog_ac_ct_CC=\"$ac_prog\"\n    $as_echo \"$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext\" >&5\n    break 2\n  fi\ndone\n  done\nIFS=$as_save_IFS\n\nfi\nfi\nac_ct_CC=$ac_cv_prog_ac_ct_CC\nif test -n \"$ac_ct_CC\"; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC\" >&5\n$as_echo \"$ac_ct_CC\" >&6; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\n\n\n  test -n \"$ac_ct_CC\" && break\ndone\n\n  if test \"x$ac_ct_CC\" = x; then\n    CC=\"\"\n  else\n    case $cross_compiling:$ac_tool_warned in\nyes:)\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet\" >&5\n$as_echo \"$as_me: WARNING: using cross tools not prefixed with host triplet\" >&2;}\nac_tool_warned=yes ;;\nesac\n    CC=$ac_ct_CC\n  fi\nfi\n\nfi\n\n\ntest -z \"$CC\" && { { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"no acceptable C compiler found in \\$PATH\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\n\n# Provide some information about the compiler.\n$as_echo \"$as_me:${as_lineno-$LINENO}: checking for C compiler version\" >&5\nset X $ac_compile\nac_compiler=$2\nfor ac_option in --version -v -V -qversion; do\n  { { ac_try=\"$ac_compiler $ac_option >&5\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_compiler $ac_option >&5\") 2>conftest.err\n  ac_status=$?\n  if test -s conftest.err; then\n    sed '10a\\\n... rest of stderr output deleted ...\n         10q' conftest.err >conftest.er1\n    cat conftest.er1 >&5\n  fi\n  rm -f conftest.er1 conftest.err\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }\ndone\n\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nac_clean_files_save=$ac_clean_files\nac_clean_files=\"$ac_clean_files a.out a.out.dSYM a.exe b.out\"\n# Try to create an executable without -o first, disregard a.out.\n# It will help us diagnose broken compilers, and finding out an intuition\n# of exeext.\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether the C compiler works\" >&5\n$as_echo_n \"checking whether the C compiler works... \" >&6; }\nac_link_default=`$as_echo \"$ac_link\" | sed 's/ -o *conftest[^ ]*//'`\n\n# The possible output files:\nac_files=\"a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*\"\n\nac_rmfiles=\nfor ac_file in $ac_files\ndo\n  case $ac_file in\n    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;\n    * ) ac_rmfiles=\"$ac_rmfiles $ac_file\";;\n  esac\ndone\nrm -f $ac_rmfiles\n\nif { { ac_try=\"$ac_link_default\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_link_default\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }; then :\n  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.\n# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'\n# in a Makefile.  We should not override ac_cv_exeext if it was cached,\n# so that the user can short-circuit this test for compilers unknown to\n# Autoconf.\nfor ac_file in $ac_files ''\ndo\n  test -f \"$ac_file\" || continue\n  case $ac_file in\n    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )\n\t;;\n    [ab].out )\n\t# We found the default executable, but exeext='' is most\n\t# certainly right.\n\tbreak;;\n    *.* )\n\tif test \"${ac_cv_exeext+set}\" = set && test \"$ac_cv_exeext\" != no;\n\tthen :; else\n\t   ac_cv_exeext=`expr \"$ac_file\" : '[^.]*\\(\\..*\\)'`\n\tfi\n\t# We set ac_cv_exeext here because the later test for it is not\n\t# safe: cross compilers may not add the suffix if given an `-o'\n\t# argument, so we may need to know it at that point already.\n\t# Even if this section looks crufty: it has the advantage of\n\t# actually working.\n\tbreak;;\n    * )\n\tbreak;;\n  esac\ndone\ntest \"$ac_cv_exeext\" = no && ac_cv_exeext=\n\nelse\n  ac_file=''\nfi\nif test -z \"$ac_file\"; then :\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\n$as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n{ { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error 77 \"C compiler cannot create executables\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name\" >&5\n$as_echo_n \"checking for C compiler default output file name... \" >&6; }\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_file\" >&5\n$as_echo \"$ac_file\" >&6; }\nac_exeext=$ac_cv_exeext\n\nrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out\nac_clean_files=$ac_clean_files_save\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for suffix of executables\" >&5\n$as_echo_n \"checking for suffix of executables... \" >&6; }\nif { { ac_try=\"$ac_link\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_link\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }; then :\n  # If both `conftest.exe' and `conftest' are `present' (well, observable)\n# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will\n# work properly (i.e., refer to `conftest.exe'), while it won't with\n# `rm'.\nfor ac_file in conftest.exe conftest conftest.*; do\n  test -f \"$ac_file\" || continue\n  case $ac_file in\n    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;\n    *.* ) ac_cv_exeext=`expr \"$ac_file\" : '[^.]*\\(\\..*\\)'`\n\t  break;;\n    * ) break;;\n  esac\ndone\nelse\n  { { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"cannot compute suffix of executables: cannot compile and link\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\nfi\nrm -f conftest conftest$ac_cv_exeext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext\" >&5\n$as_echo \"$ac_cv_exeext\" >&6; }\n\nrm -f conftest.$ac_ext\nEXEEXT=$ac_cv_exeext\nac_exeext=$EXEEXT\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <stdio.h>\nint\nmain ()\n{\nFILE *f = fopen (\"conftest.out\", \"w\");\n return ferror (f) || fclose (f) != 0;\n\n  ;\n  return 0;\n}\n_ACEOF\nac_clean_files=\"$ac_clean_files conftest.out\"\n# Check that the compiler produces executables we can run.  If not, either\n# the compiler is broken, or we cross compile.\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling\" >&5\n$as_echo_n \"checking whether we are cross compiling... \" >&6; }\nif test \"$cross_compiling\" != yes; then\n  { { ac_try=\"$ac_link\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_link\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }\n  if { ac_try='./conftest$ac_cv_exeext'\n  { { case \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_try\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }; }; then\n    cross_compiling=no\n  else\n    if test \"$cross_compiling\" = maybe; then\n\tcross_compiling=yes\n    else\n\t{ { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"cannot run C compiled programs.\nIf you meant to cross compile, use \\`--host'.\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\n    fi\n  fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $cross_compiling\" >&5\n$as_echo \"$cross_compiling\" >&6; }\n\nrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out\nac_clean_files=$ac_clean_files_save\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for suffix of object files\" >&5\n$as_echo_n \"checking for suffix of object files... \" >&6; }\nif ${ac_cv_objext+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nrm -f conftest.o conftest.obj\nif { { ac_try=\"$ac_compile\"\ncase \"(($ac_try\" in\n  *\\\"* | *\\`* | *\\\\*) ac_try_echo=\\$ac_try;;\n  *) ac_try_echo=$ac_try;;\nesac\neval ac_try_echo=\"\\\"\\$as_me:${as_lineno-$LINENO}: $ac_try_echo\\\"\"\n$as_echo \"$ac_try_echo\"; } >&5\n  (eval \"$ac_compile\") 2>&5\n  ac_status=$?\n  $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n  test $ac_status = 0; }; then :\n  for ac_file in conftest.o conftest.obj conftest.*; do\n  test -f \"$ac_file\" || continue;\n  case $ac_file in\n    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;\n    *) ac_cv_objext=`expr \"$ac_file\" : '.*\\.\\(.*\\)'`\n       break;;\n  esac\ndone\nelse\n  $as_echo \"$as_me: failed program was:\" >&5\nsed 's/^/| /' conftest.$ac_ext >&5\n\n{ { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"cannot compute suffix of object files: cannot compile\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\nfi\nrm -f conftest.$ac_cv_objext conftest.$ac_ext\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext\" >&5\n$as_echo \"$ac_cv_objext\" >&6; }\nOBJEXT=$ac_cv_objext\nac_objext=$OBJEXT\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler\" >&5\n$as_echo_n \"checking whether we are using the GNU C compiler... \" >&6; }\nif ${ac_cv_c_compiler_gnu+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n#ifndef __GNUC__\n       choke me\n#endif\n\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_compiler_gnu=yes\nelse\n  ac_compiler_gnu=no\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\nac_cv_c_compiler_gnu=$ac_compiler_gnu\n\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu\" >&5\n$as_echo \"$ac_cv_c_compiler_gnu\" >&6; }\nif test $ac_compiler_gnu = yes; then\n  GCC=yes\nelse\n  GCC=\nfi\nac_test_CFLAGS=${CFLAGS+set}\nac_save_CFLAGS=$CFLAGS\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g\" >&5\n$as_echo_n \"checking whether $CC accepts -g... \" >&6; }\nif ${ac_cv_prog_cc_g+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  ac_save_c_werror_flag=$ac_c_werror_flag\n   ac_c_werror_flag=yes\n   ac_cv_prog_cc_g=no\n   CFLAGS=\"-g\"\n   cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_cv_prog_cc_g=yes\nelse\n  CFLAGS=\"\"\n      cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\nelse\n  ac_c_werror_flag=$ac_save_c_werror_flag\n\t CFLAGS=\"-g\"\n\t cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_cv_prog_cc_g=yes\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n   ac_c_werror_flag=$ac_save_c_werror_flag\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g\" >&5\n$as_echo \"$ac_cv_prog_cc_g\" >&6; }\nif test \"$ac_test_CFLAGS\" = set; then\n  CFLAGS=$ac_save_CFLAGS\nelif test $ac_cv_prog_cc_g = yes; then\n  if test \"$GCC\" = yes; then\n    CFLAGS=\"-g -O2\"\n  else\n    CFLAGS=\"-g\"\n  fi\nelse\n  if test \"$GCC\" = yes; then\n    CFLAGS=\"-O2\"\n  else\n    CFLAGS=\n  fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89\" >&5\n$as_echo_n \"checking for $CC option to accept ISO C89... \" >&6; }\nif ${ac_cv_prog_cc_c89+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  ac_cv_prog_cc_c89=no\nac_save_CC=$CC\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <stdarg.h>\n#include <stdio.h>\nstruct stat;\n/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */\nstruct buf { int x; };\nFILE * (*rcsopen) (struct buf *, struct stat *, int);\nstatic char *e (p, i)\n     char **p;\n     int i;\n{\n  return p[i];\n}\nstatic char *f (char * (*g) (char **, int), char **p, ...)\n{\n  char *s;\n  va_list v;\n  va_start (v,p);\n  s = g (p, va_arg (v,int));\n  va_end (v);\n  return s;\n}\n\n/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has\n   function prototypes and stuff, but not '\\xHH' hex character constants.\n   These don't provoke an error unfortunately, instead are silently treated\n   as 'x'.  The following induces an error, until -std is added to get\n   proper ANSI mode.  Curiously '\\x00'!='x' always comes out true, for an\n   array size at least.  It's necessary to write '\\x00'==0 to get something\n   that's true only with -std.  */\nint osf4_cc_array ['\\x00' == 0 ? 1 : -1];\n\n/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters\n   inside strings and character constants.  */\n#define FOO(x) 'x'\nint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];\n\nint test (int i, double x);\nstruct s1 {int (*f) (int a);};\nstruct s2 {int (*f) (double a);};\nint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);\nint argc;\nchar **argv;\nint\nmain ()\n{\nreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];\n  ;\n  return 0;\n}\n_ACEOF\nfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \\\n\t-Ae \"-Aa -D_HPUX_SOURCE\" \"-Xc -D__EXTENSIONS__\"\ndo\n  CC=\"$ac_save_CC $ac_arg\"\n  if ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_cv_prog_cc_c89=$ac_arg\nfi\nrm -f core conftest.err conftest.$ac_objext\n  test \"x$ac_cv_prog_cc_c89\" != \"xno\" && break\ndone\nrm -f conftest.$ac_ext\nCC=$ac_save_CC\n\nfi\n# AC_CACHE_VAL\ncase \"x$ac_cv_prog_cc_c89\" in\n  x)\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: result: none needed\" >&5\n$as_echo \"none needed\" >&6; } ;;\n  xno)\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: result: unsupported\" >&5\n$as_echo \"unsupported\" >&6; } ;;\n  *)\n    CC=\"$CC $ac_cv_prog_cc_c89\"\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89\" >&5\n$as_echo \"$ac_cv_prog_cc_c89\" >&6; } ;;\nesac\nif test \"x$ac_cv_prog_cc_c89\" != xno; then :\n\nfi\n\nac_ext=c\nac_cpp='$CPP $CPPFLAGS'\nac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'\nac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'\nac_compiler_gnu=$ac_cv_c_compiler_gnu\nDEPDIR=\"${am__leading_dot}deps\"\n\nac_config_commands=\"$ac_config_commands depfiles\"\n\n\nam_make=${MAKE-make}\ncat > confinc << 'END'\nam__doit:\n\t@echo this is the am__doit target\n.PHONY: am__doit\nEND\n# If we don't find an include directive, just comment out the code.\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make\" >&5\n$as_echo_n \"checking for style of include used by $am_make... \" >&6; }\nam__include=\"#\"\nam__quote=\n_am_result=none\n# First try GNU make style include.\necho \"include confinc\" > confmf\n# Ignore all kinds of additional output from `make'.\ncase `$am_make -s -f confmf 2> /dev/null` in #(\n*the\\ am__doit\\ target*)\n  am__include=include\n  am__quote=\n  _am_result=GNU\n  ;;\nesac\n# Now try BSD make style include.\nif test \"$am__include\" = \"#\"; then\n   echo '.include \"confinc\"' > confmf\n   case `$am_make -s -f confmf 2> /dev/null` in #(\n   *the\\ am__doit\\ target*)\n     am__include=.include\n     am__quote=\"\\\"\"\n     _am_result=BSD\n     ;;\n   esac\nfi\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $_am_result\" >&5\n$as_echo \"$_am_result\" >&6; }\nrm -f confinc confmf\n\n# Check whether --enable-dependency-tracking was given.\nif test \"${enable_dependency_tracking+set}\" = set; then :\n  enableval=$enable_dependency_tracking;\nfi\n\nif test \"x$enable_dependency_tracking\" != xno; then\n  am_depcomp=\"$ac_aux_dir/depcomp\"\n  AMDEPBACKSLASH='\\'\n  am__nodep='_no'\nfi\n if test \"x$enable_dependency_tracking\" != xno; then\n  AMDEP_TRUE=\n  AMDEP_FALSE='#'\nelse\n  AMDEP_TRUE='#'\n  AMDEP_FALSE=\nfi\n\n\n\ndepcc=\"$CC\"   am_compiler_list=\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc\" >&5\n$as_echo_n \"checking dependency style of $depcc... \" >&6; }\nif ${am_cv_CC_dependencies_compiler_type+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -z \"$AMDEP_TRUE\" && test -f \"$am_depcomp\"; then\n  # We make a subdir and do the tests there.  Otherwise we can end up\n  # making bogus files that we don't know about and never remove.  For\n  # instance it was reported that on HP-UX the gcc test will end up\n  # making a dummy file named `D' -- because `-MD' means `put the output\n  # in D'.\n  rm -rf conftest.dir\n  mkdir conftest.dir\n  # Copy depcomp to subdir because otherwise we won't find it if we're\n  # using a relative directory.\n  cp \"$am_depcomp\" conftest.dir\n  cd conftest.dir\n  # We will build objects and dependencies in a subdirectory because\n  # it helps to detect inapplicable dependency modes.  For instance\n  # both Tru64's cc and ICC support -MD to output dependencies as a\n  # side effect of compilation, but ICC will put the dependencies in\n  # the current directory while Tru64 will put them in the object\n  # directory.\n  mkdir sub\n\n  am_cv_CC_dependencies_compiler_type=none\n  if test \"$am_compiler_list\" = \"\"; then\n     am_compiler_list=`sed -n 's/^#*\\([a-zA-Z0-9]*\\))$/\\1/p' < ./depcomp`\n  fi\n  am__universal=false\n  case \" $depcc \" in #(\n     *\\ -arch\\ *\\ -arch\\ *) am__universal=true ;;\n     esac\n\n  for depmode in $am_compiler_list; do\n    # Setup a source with many dependencies, because some compilers\n    # like to wrap large dependency lists on column 80 (with \\), and\n    # we should not choose a depcomp mode which is confused by this.\n    #\n    # We need to recreate these files for each test, as the compiler may\n    # overwrite some of them when testing with obscure command lines.\n    # This happens at least with the AIX C compiler.\n    : > sub/conftest.c\n    for i in 1 2 3 4 5 6; do\n      echo '#include \"conftst'$i'.h\"' >> sub/conftest.c\n      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with\n      # Solaris 8's {/usr,}/bin/sh.\n      touch sub/conftst$i.h\n    done\n    echo \"${am__include} ${am__quote}sub/conftest.Po${am__quote}\" > confmf\n\n    # We check with `-c' and `-o' for the sake of the \"dashmstdout\"\n    # mode.  It turns out that the SunPro C++ compiler does not properly\n    # handle `-M -o', and we need to detect this.  Also, some Intel\n    # versions had trouble with output in subdirs\n    am__obj=sub/conftest.${OBJEXT-o}\n    am__minus_obj=\"-o $am__obj\"\n    case $depmode in\n    gcc)\n      # This depmode causes a compiler race in universal mode.\n      test \"$am__universal\" = false || continue\n      ;;\n    nosideeffect)\n      # after this tag, mechanisms are not by side-effect, so they'll\n      # only be used when explicitly requested\n      if test \"x$enable_dependency_tracking\" = xyes; then\n\tcontinue\n      else\n\tbreak\n      fi\n      ;;\n    msvc7 | msvc7msys | msvisualcpp | msvcmsys)\n      # This compiler won't grok `-c -o', but also, the minuso test has\n      # not run yet.  These depmodes are late enough in the game, and\n      # so weak that their functioning should not be impacted.\n      am__obj=conftest.${OBJEXT-o}\n      am__minus_obj=\n      ;;\n    none) break ;;\n    esac\n    if depmode=$depmode \\\n       source=sub/conftest.c object=$am__obj \\\n       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \\\n       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \\\n         >/dev/null 2>conftest.err &&\n       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&\n       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&\n       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&\n       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then\n      # icc doesn't choke on unknown options, it will just issue warnings\n      # or remarks (even with -Werror).  So we grep stderr for any message\n      # that says an option was ignored or not supported.\n      # When given -MP, icc 7.0 and 7.1 complain thusly:\n      #   icc: Command line warning: ignoring option '-M'; no argument required\n      # The diagnosis changed in icc 8.0:\n      #   icc: Command line remark: option '-MP' not supported\n      if (grep 'ignoring option' conftest.err ||\n          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else\n        am_cv_CC_dependencies_compiler_type=$depmode\n        break\n      fi\n    fi\n  done\n\n  cd ..\n  rm -rf conftest.dir\nelse\n  am_cv_CC_dependencies_compiler_type=none\nfi\n\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type\" >&5\n$as_echo \"$am_cv_CC_dependencies_compiler_type\" >&6; }\nCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type\n\n if\n  test \"x$enable_dependency_tracking\" != xno \\\n  && test \"$am_cv_CC_dependencies_compiler_type\" = gcc3; then\n  am__fastdepCC_TRUE=\n  am__fastdepCC_FALSE='#'\nelse\n  am__fastdepCC_TRUE='#'\n  am__fastdepCC_FALSE=\nfi\n\n\n\n\n\nac_ext=c\nac_cpp='$CPP $CPPFLAGS'\nac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'\nac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'\nac_compiler_gnu=$ac_cv_c_compiler_gnu\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor\" >&5\n$as_echo_n \"checking how to run the C preprocessor... \" >&6; }\n# On Suns, sometimes $CPP names a directory.\nif test -n \"$CPP\" && test -d \"$CPP\"; then\n  CPP=\nfi\nif test -z \"$CPP\"; then\n  if ${ac_cv_prog_CPP+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n      # Double quotes because CPP needs to be expanded\n    for CPP in \"$CC -E\" \"$CC -E -traditional-cpp\" \"/lib/cpp\"\n    do\n      ac_preproc_ok=false\nfor ac_c_preproc_warn_flag in '' yes\ndo\n  # Use a header file that comes with gcc, so configuring glibc\n  # with a fresh cross-compiler works.\n  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since\n  # <limits.h> exists even on freestanding compilers.\n  # On the NeXT, cc -E runs the code through the compiler's parser,\n  # not just through cpp. \"Syntax error\" is here to catch this case.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#ifdef __STDC__\n# include <limits.h>\n#else\n# include <assert.h>\n#endif\n\t\t     Syntax error\n_ACEOF\nif ac_fn_c_try_cpp \"$LINENO\"; then :\n\nelse\n  # Broken: fails on valid input.\ncontinue\nfi\nrm -f conftest.err conftest.i conftest.$ac_ext\n\n  # OK, works on sane cases.  Now check whether nonexistent headers\n  # can be detected and how.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <ac_nonexistent.h>\n_ACEOF\nif ac_fn_c_try_cpp \"$LINENO\"; then :\n  # Broken: success on invalid input.\ncontinue\nelse\n  # Passes both tests.\nac_preproc_ok=:\nbreak\nfi\nrm -f conftest.err conftest.i conftest.$ac_ext\n\ndone\n# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.\nrm -f conftest.i conftest.err conftest.$ac_ext\nif $ac_preproc_ok; then :\n  break\nfi\n\n    done\n    ac_cv_prog_CPP=$CPP\n\nfi\n  CPP=$ac_cv_prog_CPP\nelse\n  ac_cv_prog_CPP=$CPP\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $CPP\" >&5\n$as_echo \"$CPP\" >&6; }\nac_preproc_ok=false\nfor ac_c_preproc_warn_flag in '' yes\ndo\n  # Use a header file that comes with gcc, so configuring glibc\n  # with a fresh cross-compiler works.\n  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since\n  # <limits.h> exists even on freestanding compilers.\n  # On the NeXT, cc -E runs the code through the compiler's parser,\n  # not just through cpp. \"Syntax error\" is here to catch this case.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#ifdef __STDC__\n# include <limits.h>\n#else\n# include <assert.h>\n#endif\n\t\t     Syntax error\n_ACEOF\nif ac_fn_c_try_cpp \"$LINENO\"; then :\n\nelse\n  # Broken: fails on valid input.\ncontinue\nfi\nrm -f conftest.err conftest.i conftest.$ac_ext\n\n  # OK, works on sane cases.  Now check whether nonexistent headers\n  # can be detected and how.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <ac_nonexistent.h>\n_ACEOF\nif ac_fn_c_try_cpp \"$LINENO\"; then :\n  # Broken: success on invalid input.\ncontinue\nelse\n  # Passes both tests.\nac_preproc_ok=:\nbreak\nfi\nrm -f conftest.err conftest.i conftest.$ac_ext\n\ndone\n# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.\nrm -f conftest.i conftest.err conftest.$ac_ext\nif $ac_preproc_ok; then :\n\nelse\n  { { $as_echo \"$as_me:${as_lineno-$LINENO}: error: in \\`$ac_pwd':\" >&5\n$as_echo \"$as_me: error: in \\`$ac_pwd':\" >&2;}\nas_fn_error $? \"C preprocessor \\\"$CPP\\\" fails sanity check\nSee \\`config.log' for more details\" \"$LINENO\" 5; }\nfi\n\nac_ext=c\nac_cpp='$CPP $CPPFLAGS'\nac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'\nac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'\nac_compiler_gnu=$ac_cv_c_compiler_gnu\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e\" >&5\n$as_echo_n \"checking for grep that handles long lines and -e... \" >&6; }\nif ${ac_cv_path_GREP+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if test -z \"$GREP\"; then\n  ac_path_GREP_found=false\n  # Loop through the user's path and test for each of PROGNAME-LIST\n  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_prog in grep ggrep; do\n    for ac_exec_ext in '' $ac_executable_extensions; do\n      ac_path_GREP=\"$as_dir/$ac_prog$ac_exec_ext\"\n      as_fn_executable_p \"$ac_path_GREP\" || continue\n# Check for GNU ac_path_GREP and select it if it is found.\n  # Check for GNU $ac_path_GREP\ncase `\"$ac_path_GREP\" --version 2>&1` in\n*GNU*)\n  ac_cv_path_GREP=\"$ac_path_GREP\" ac_path_GREP_found=:;;\n*)\n  ac_count=0\n  $as_echo_n 0123456789 >\"conftest.in\"\n  while :\n  do\n    cat \"conftest.in\" \"conftest.in\" >\"conftest.tmp\"\n    mv \"conftest.tmp\" \"conftest.in\"\n    cp \"conftest.in\" \"conftest.nl\"\n    $as_echo 'GREP' >> \"conftest.nl\"\n    \"$ac_path_GREP\" -e 'GREP$' -e '-(cannot match)-' < \"conftest.nl\" >\"conftest.out\" 2>/dev/null || break\n    diff \"conftest.out\" \"conftest.nl\" >/dev/null 2>&1 || break\n    as_fn_arith $ac_count + 1 && ac_count=$as_val\n    if test $ac_count -gt ${ac_path_GREP_max-0}; then\n      # Best one so far, save it but keep looking for a better one\n      ac_cv_path_GREP=\"$ac_path_GREP\"\n      ac_path_GREP_max=$ac_count\n    fi\n    # 10*(2^10) chars as input seems more than enough\n    test $ac_count -gt 10 && break\n  done\n  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;\nesac\n\n      $ac_path_GREP_found && break 3\n    done\n  done\n  done\nIFS=$as_save_IFS\n  if test -z \"$ac_cv_path_GREP\"; then\n    as_fn_error $? \"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin\" \"$LINENO\" 5\n  fi\nelse\n  ac_cv_path_GREP=$GREP\nfi\n\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP\" >&5\n$as_echo \"$ac_cv_path_GREP\" >&6; }\n GREP=\"$ac_cv_path_GREP\"\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for egrep\" >&5\n$as_echo_n \"checking for egrep... \" >&6; }\nif ${ac_cv_path_EGREP+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1\n   then ac_cv_path_EGREP=\"$GREP -E\"\n   else\n     if test -z \"$EGREP\"; then\n  ac_path_EGREP_found=false\n  # Loop through the user's path and test for each of PROGNAME-LIST\n  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    for ac_prog in egrep; do\n    for ac_exec_ext in '' $ac_executable_extensions; do\n      ac_path_EGREP=\"$as_dir/$ac_prog$ac_exec_ext\"\n      as_fn_executable_p \"$ac_path_EGREP\" || continue\n# Check for GNU ac_path_EGREP and select it if it is found.\n  # Check for GNU $ac_path_EGREP\ncase `\"$ac_path_EGREP\" --version 2>&1` in\n*GNU*)\n  ac_cv_path_EGREP=\"$ac_path_EGREP\" ac_path_EGREP_found=:;;\n*)\n  ac_count=0\n  $as_echo_n 0123456789 >\"conftest.in\"\n  while :\n  do\n    cat \"conftest.in\" \"conftest.in\" >\"conftest.tmp\"\n    mv \"conftest.tmp\" \"conftest.in\"\n    cp \"conftest.in\" \"conftest.nl\"\n    $as_echo 'EGREP' >> \"conftest.nl\"\n    \"$ac_path_EGREP\" 'EGREP$' < \"conftest.nl\" >\"conftest.out\" 2>/dev/null || break\n    diff \"conftest.out\" \"conftest.nl\" >/dev/null 2>&1 || break\n    as_fn_arith $ac_count + 1 && ac_count=$as_val\n    if test $ac_count -gt ${ac_path_EGREP_max-0}; then\n      # Best one so far, save it but keep looking for a better one\n      ac_cv_path_EGREP=\"$ac_path_EGREP\"\n      ac_path_EGREP_max=$ac_count\n    fi\n    # 10*(2^10) chars as input seems more than enough\n    test $ac_count -gt 10 && break\n  done\n  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;\nesac\n\n      $ac_path_EGREP_found && break 3\n    done\n  done\n  done\nIFS=$as_save_IFS\n  if test -z \"$ac_cv_path_EGREP\"; then\n    as_fn_error $? \"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin\" \"$LINENO\" 5\n  fi\nelse\n  ac_cv_path_EGREP=$EGREP\nfi\n\n   fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP\" >&5\n$as_echo \"$ac_cv_path_EGREP\" >&6; }\n EGREP=\"$ac_cv_path_EGREP\"\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for ANSI C header files\" >&5\n$as_echo_n \"checking for ANSI C header files... \" >&6; }\nif ${ac_cv_header_stdc+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <stdlib.h>\n#include <stdarg.h>\n#include <string.h>\n#include <float.h>\n\nint\nmain ()\n{\n\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n  ac_cv_header_stdc=yes\nelse\n  ac_cv_header_stdc=no\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n\nif test $ac_cv_header_stdc = yes; then\n  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <string.h>\n\n_ACEOF\nif (eval \"$ac_cpp conftest.$ac_ext\") 2>&5 |\n  $EGREP \"memchr\" >/dev/null 2>&1; then :\n\nelse\n  ac_cv_header_stdc=no\nfi\nrm -f conftest*\n\nfi\n\nif test $ac_cv_header_stdc = yes; then\n  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <stdlib.h>\n\n_ACEOF\nif (eval \"$ac_cpp conftest.$ac_ext\") 2>&5 |\n  $EGREP \"free\" >/dev/null 2>&1; then :\n\nelse\n  ac_cv_header_stdc=no\nfi\nrm -f conftest*\n\nfi\n\nif test $ac_cv_header_stdc = yes; then\n  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.\n  if test \"$cross_compiling\" = yes; then :\n  :\nelse\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <ctype.h>\n#include <stdlib.h>\n#if ((' ' & 0x0FF) == 0x020)\n# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')\n# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))\n#else\n# define ISLOWER(c) \\\n\t\t   (('a' <= (c) && (c) <= 'i') \\\n\t\t     || ('j' <= (c) && (c) <= 'r') \\\n\t\t     || ('s' <= (c) && (c) <= 'z'))\n# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))\n#endif\n\n#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))\nint\nmain ()\n{\n  int i;\n  for (i = 0; i < 256; i++)\n    if (XOR (islower (i), ISLOWER (i))\n\t|| toupper (i) != TOUPPER (i))\n      return 2;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_run \"$LINENO\"; then :\n\nelse\n  ac_cv_header_stdc=no\nfi\nrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \\\n  conftest.$ac_objext conftest.beam conftest.$ac_ext\nfi\n\nfi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc\" >&5\n$as_echo \"$ac_cv_header_stdc\" >&6; }\nif test $ac_cv_header_stdc = yes; then\n\n$as_echo \"#define STDC_HEADERS 1\" >>confdefs.h\n\nfi\n\n# On IRIX 5.3, sys/types and inttypes.h are conflicting.\nfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \\\n\t\t  inttypes.h stdint.h unistd.h\ndo :\n  as_ac_Header=`$as_echo \"ac_cv_header_$ac_header\" | $as_tr_sh`\nac_fn_c_check_header_compile \"$LINENO\" \"$ac_header\" \"$as_ac_Header\" \"$ac_includes_default\n\"\nif eval test \\\"x\\$\"$as_ac_Header\"\\\" = x\"yes\"; then :\n  cat >>confdefs.h <<_ACEOF\n#define `$as_echo \"HAVE_$ac_header\" | $as_tr_cpp` 1\n_ACEOF\n\nfi\n\ndone\n\n\nfor ac_header in sys/ioctl.h unistd.h sys/types.h sys/bitypes.h sys/sockio.h netdb.h ctype.h\ndo :\n  as_ac_Header=`$as_echo \"ac_cv_header_$ac_header\" | $as_tr_sh`\nac_fn_c_check_header_mongrel \"$LINENO\" \"$ac_header\" \"$as_ac_Header\" \"$ac_includes_default\"\nif eval test \\\"x\\$\"$as_ac_Header\"\\\" = x\"yes\"; then :\n  cat >>confdefs.h <<_ACEOF\n#define `$as_echo \"HAVE_$ac_header\" | $as_tr_cpp` 1\n_ACEOF\n\nfi\n\ndone\n\nif test $ac_cv_c_compiler_gnu = yes; then\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional\" >&5\n$as_echo_n \"checking whether $CC needs -traditional... \" >&6; }\nif ${ac_cv_prog_gcc_traditional+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n    ac_pattern=\"Autoconf.*'x'\"\n  cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <sgtty.h>\nAutoconf TIOCGETP\n_ACEOF\nif (eval \"$ac_cpp conftest.$ac_ext\") 2>&5 |\n  $EGREP \"$ac_pattern\" >/dev/null 2>&1; then :\n  ac_cv_prog_gcc_traditional=yes\nelse\n  ac_cv_prog_gcc_traditional=no\nfi\nrm -f conftest*\n\n\n  if test $ac_cv_prog_gcc_traditional = no; then\n    cat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n#include <termio.h>\nAutoconf TCGETA\n_ACEOF\nif (eval \"$ac_cpp conftest.$ac_ext\") 2>&5 |\n  $EGREP \"$ac_pattern\" >/dev/null 2>&1; then :\n  ac_cv_prog_gcc_traditional=yes\nfi\nrm -f conftest*\n\n  fi\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional\" >&5\n$as_echo \"$ac_cv_prog_gcc_traditional\" >&6; }\n  if test $ac_cv_prog_gcc_traditional = yes; then\n    CC=\"$CC -traditional\"\n  fi\nfi\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl\" >&5\n$as_echo_n \"checking for inet_ntoa in -lnsl... \" >&6; }\nif ${ac_cv_lib_nsl_inet_ntoa+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  ac_check_lib_save_LIBS=$LIBS\nLIBS=\"-lnsl  $LIBS\"\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n/* Override any GCC internal prototype to avoid an error.\n   Use char because int might match the return type of a GCC\n   builtin and then its argument prototype would still apply.  */\n#ifdef __cplusplus\nextern \"C\"\n#endif\nchar inet_ntoa ();\nint\nmain ()\n{\nreturn inet_ntoa ();\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_link \"$LINENO\"; then :\n  ac_cv_lib_nsl_inet_ntoa=yes\nelse\n  ac_cv_lib_nsl_inet_ntoa=no\nfi\nrm -f core conftest.err conftest.$ac_objext \\\n    conftest$ac_exeext conftest.$ac_ext\nLIBS=$ac_check_lib_save_LIBS\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa\" >&5\n$as_echo \"$ac_cv_lib_nsl_inet_ntoa\" >&6; }\nif test \"x$ac_cv_lib_nsl_inet_ntoa\" = xyes; then :\n\n\n$as_echo \"#define HAVE_LIBNSL 1\" >>confdefs.h\n\n  LIBS=\"$LIBS -lnsl\"\n\nfi\n\nfor ac_func in socket strstr strtol strtoul gethostbyname gethostbyname2 inet_ntop getipnodebyaddr getaddrinfo\ndo :\n  as_ac_var=`$as_echo \"ac_cv_func_$ac_func\" | $as_tr_sh`\nac_fn_c_check_func \"$LINENO\" \"$ac_func\" \"$as_ac_var\"\nif eval test \\\"x\\$\"$as_ac_var\"\\\" = x\"yes\"; then :\n  cat >>confdefs.h <<_ACEOF\n#define `$as_echo \"HAVE_$ac_func\" | $as_tr_cpp` 1\n_ACEOF\n\nfi\ndone\n\n\nif test -d /usr/local/include;\nthen\n  CFLAGS=\"${CFLAGS} -I/usr/local/include\"\nfi\n\nif test -d /usr/local/lib;\nthen\n  LIBS=\"${LIBS} -L/usr/local/lib\"\nfi\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket\" >&5\n$as_echo_n \"checking for socket in -lsocket... \" >&6; }\nif ${ac_cv_lib_socket_socket+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  ac_check_lib_save_LIBS=$LIBS\nLIBS=\"-lsocket  $LIBS\"\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n/* Override any GCC internal prototype to avoid an error.\n   Use char because int might match the return type of a GCC\n   builtin and then its argument prototype would still apply.  */\n#ifdef __cplusplus\nextern \"C\"\n#endif\nchar socket ();\nint\nmain ()\n{\nreturn socket ();\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_link \"$LINENO\"; then :\n  ac_cv_lib_socket_socket=yes\nelse\n  ac_cv_lib_socket_socket=no\nfi\nrm -f core conftest.err conftest.$ac_objext \\\n    conftest$ac_exeext conftest.$ac_ext\nLIBS=$ac_check_lib_save_LIBS\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket\" >&5\n$as_echo \"$ac_cv_lib_socket_socket\" >&6; }\nif test \"x$ac_cv_lib_socket_socket\" = xyes; then :\n\n\n$as_echo \"#define HAVE_LIBSOCKET 1\" >>confdefs.h\n\n    LIBS=\"$LIBS -lsocket\"\n\nfi\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for gethostbyname in netdb.h\" >&5\n$as_echo_n \"checking for gethostbyname in netdb.h... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <netdb.h>\n\nint\nmain ()\n{\nstruct hostent *h; h=gethostbyname(\"127.0.0.1\")\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_GETHOSTBYNAME_NETDB 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in netdb.h\" >&5\n$as_echo_n \"checking for gethostbyname2 in netdb.h... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <netdb.h>\n\nint\nmain ()\n{\nstruct hostent *h; h=gethostbyname(\"127.0.0.1\", AF_INET)\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_GETHOSTBYNAME2_NETDB 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in netdb.h\" >&5\n$as_echo_n \"checking for getaddrinfo in netdb.h... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <netdb.h>\n\nint\nmain ()\n{\nstruct addrinfo h; struct addrinfo *r; getaddrinfo(\"127.0.0.1\", NULL, &h, &r)\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_GETADDRINFO_NETDB 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if struct sockaddr has sa_len field\" >&5\n$as_echo_n \"checking if struct sockaddr has sa_len field... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n  #include <sys/socket.h>\n\nint\nmain ()\n{\nstruct sockaddr sa;int x; x=sizeof(sa.sa_len);\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_SA_LEN 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n\n  for ac_header in getopt.h\ndo :\n  ac_fn_c_check_header_mongrel \"$LINENO\" \"getopt.h\" \"ac_cv_header_getopt_h\" \"$ac_includes_default\"\nif test \"x$ac_cv_header_getopt_h\" = xyes; then :\n  cat >>confdefs.h <<_ACEOF\n#define HAVE_GETOPT_H 1\n_ACEOF\n\n\n$as_echo \"#define HAVE_GETOPT_H 1\" >>confdefs.h\n\n\nelse\n\n    if test -f /usr/local/include/getopt.h;\n    then\n      echo checking for getopt.h in /usr/local/include... yes\n\n$as_echo \"#define HAVE_GETOPT_H 1\" >>confdefs.h\n\n    fi\n\nfi\n\ndone\n\n  for ac_func in getopt_long\ndo :\n  ac_fn_c_check_func \"$LINENO\" \"getopt_long\" \"ac_cv_func_getopt_long\"\nif test \"x$ac_cv_func_getopt_long\" = xyes; then :\n  cat >>confdefs.h <<_ACEOF\n#define HAVE_GETOPT_LONG 1\n_ACEOF\n\nelse\n\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt\" >&5\n$as_echo_n \"checking for getopt_long in -lgnugetopt... \" >&6; }\nif ${ac_cv_lib_gnugetopt_getopt_long+:} false; then :\n  $as_echo_n \"(cached) \" >&6\nelse\n  ac_check_lib_save_LIBS=$LIBS\nLIBS=\"-lgnugetopt  $LIBS\"\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n/* Override any GCC internal prototype to avoid an error.\n   Use char because int might match the return type of a GCC\n   builtin and then its argument prototype would still apply.  */\n#ifdef __cplusplus\nextern \"C\"\n#endif\nchar getopt_long ();\nint\nmain ()\n{\nreturn getopt_long ();\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_link \"$LINENO\"; then :\n  ac_cv_lib_gnugetopt_getopt_long=yes\nelse\n  ac_cv_lib_gnugetopt_getopt_long=no\nfi\nrm -f core conftest.err conftest.$ac_objext \\\n    conftest$ac_exeext conftest.$ac_ext\nLIBS=$ac_check_lib_save_LIBS\nfi\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long\" >&5\n$as_echo \"$ac_cv_lib_gnugetopt_getopt_long\" >&6; }\nif test \"x$ac_cv_lib_gnugetopt_getopt_long\" = xyes; then :\n\n\n$as_echo \"#define HAVE_GETOPT_LONG 1\" >>confdefs.h\n\n      LIBS=\"$LIBS -lgnugetopt\"\n\nfi\n\n\nfi\ndone\n\n\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type uint8_t exists\" >&5\n$as_echo_n \"checking if type uint8_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nuint8_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_UINT8_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type uint16_t exists\" >&5\n$as_echo_n \"checking if type uint16_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nuint16_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_UINT16_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type uint32_t exists\" >&5\n$as_echo_n \"checking if type uint32_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nuint32_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_UINT32_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type u_int8_t exists\" >&5\n$as_echo_n \"checking if type u_int8_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nu_int8_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_U_INT8_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type u_int16_t exists\" >&5\n$as_echo_n \"checking if type u_int16_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nu_int32_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_U_INT16_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking if type u_int32_t exists\" >&5\n$as_echo_n \"checking if type u_int32_t exists... \" >&6; }\ncat confdefs.h - <<_ACEOF >conftest.$ac_ext\n/* end confdefs.h.  */\n\n  #include <sys/types.h>\n\nint\nmain ()\n{\nu_int32_t a;\n  ;\n  return 0;\n}\n_ACEOF\nif ac_fn_c_try_compile \"$LINENO\"; then :\n\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes\" >&5\n$as_echo \"yes\" >&6; }\n\n$as_echo \"#define HAVE_U_INT32_T 1\" >>confdefs.h\n\n\nelse\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n$as_echo \"no\" >&6; }\nfi\nrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext\nac_config_files=\"$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile\"\n\ncat >confcache <<\\_ACEOF\n# This file is a shell script that caches the results of configure\n# tests run on this system so they can be shared between configure\n# scripts and configure runs, see configure's option --config-cache.\n# It is not useful on other systems.  If it contains results you don't\n# want to keep, you may remove or edit it.\n#\n# config.status only pays attention to the cache file if you give it\n# the --recheck option to rerun configure.\n#\n# `ac_cv_env_foo' variables (set or unset) will be overridden when\n# loading this file, other *unset* `ac_cv_foo' will be assigned the\n# following values.\n\n_ACEOF\n\n# The following way of writing the cache mishandles newlines in values,\n# but we know of no workaround that is simple, portable, and efficient.\n# So, we kill variables containing newlines.\n# Ultrix sh set writes to stderr and can't be redirected directly,\n# and sets the high bit in the cache file unless we assign to the vars.\n(\n  for ac_var in `(set) 2>&1 | sed -n 's/^\\([a-zA-Z_][a-zA-Z0-9_]*\\)=.*/\\1/p'`; do\n    eval ac_val=\\$$ac_var\n    case $ac_val in #(\n    *${as_nl}*)\n      case $ac_var in #(\n      *_cv_*) { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline\" >&5\n$as_echo \"$as_me: WARNING: cache variable $ac_var contains a newline\" >&2;} ;;\n      esac\n      case $ac_var in #(\n      _ | IFS | as_nl) ;; #(\n      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(\n      *) { eval $ac_var=; unset $ac_var;} ;;\n      esac ;;\n    esac\n  done\n\n  (set) 2>&1 |\n    case $as_nl`(ac_space=' '; set) 2>&1` in #(\n    *${as_nl}ac_space=\\ *)\n      # `set' does not quote correctly, so add quotes: double-quote\n      # substitution turns \\\\\\\\ into \\\\, and sed turns \\\\ into \\.\n      sed -n \\\n\t\"s/'/'\\\\\\\\''/g;\n\t  s/^\\\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\\\)=\\\\(.*\\\\)/\\\\1='\\\\2'/p\"\n      ;; #(\n    *)\n      # `set' quotes correctly as required by POSIX, so do not add quotes.\n      sed -n \"/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p\"\n      ;;\n    esac |\n    sort\n) |\n  sed '\n     /^ac_cv_env_/b end\n     t clear\n     :clear\n     s/^\\([^=]*\\)=\\(.*[{}].*\\)$/test \"${\\1+set}\" = set || &/\n     t end\n     s/^\\([^=]*\\)=\\(.*\\)$/\\1=${\\1=\\2}/\n     :end' >>confcache\nif diff \"$cache_file\" confcache >/dev/null 2>&1; then :; else\n  if test -w \"$cache_file\"; then\n    if test \"x$cache_file\" != \"x/dev/null\"; then\n      { $as_echo \"$as_me:${as_lineno-$LINENO}: updating cache $cache_file\" >&5\n$as_echo \"$as_me: updating cache $cache_file\" >&6;}\n      if test ! -f \"$cache_file\" || test -h \"$cache_file\"; then\n\tcat confcache >\"$cache_file\"\n      else\n        case $cache_file in #(\n        */* | ?:*)\n\t  mv -f confcache \"$cache_file\"$$ &&\n\t  mv -f \"$cache_file\"$$ \"$cache_file\" ;; #(\n        *)\n\t  mv -f confcache \"$cache_file\" ;;\n\tesac\n      fi\n    fi\n  else\n    { $as_echo \"$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file\" >&5\n$as_echo \"$as_me: not updating unwritable cache $cache_file\" >&6;}\n  fi\nfi\nrm -f confcache\n\ntest \"x$prefix\" = xNONE && prefix=$ac_default_prefix\n# Let make expand exec_prefix.\ntest \"x$exec_prefix\" = xNONE && exec_prefix='${prefix}'\n\nDEFS=-DHAVE_CONFIG_H\n\nac_libobjs=\nac_ltlibobjs=\nU=\nfor ac_i in : $LIBOBJS; do test \"x$ac_i\" = x: && continue\n  # 1. Remove the extension, and $U if already installed.\n  ac_script='s/\\$U\\././;s/\\.o$//;s/\\.obj$//'\n  ac_i=`$as_echo \"$ac_i\" | sed \"$ac_script\"`\n  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR\n  #    will be set to the directory where LIBOBJS objects are built.\n  as_fn_append ac_libobjs \" \\${LIBOBJDIR}$ac_i\\$U.$ac_objext\"\n  as_fn_append ac_ltlibobjs \" \\${LIBOBJDIR}$ac_i\"'$U.lo'\ndone\nLIBOBJS=$ac_libobjs\n\nLTLIBOBJS=$ac_ltlibobjs\n\n\n if test -n \"$EXEEXT\"; then\n  am__EXEEXT_TRUE=\n  am__EXEEXT_FALSE='#'\nelse\n  am__EXEEXT_TRUE='#'\n  am__EXEEXT_FALSE=\nfi\n\nif test -z \"${AMDEP_TRUE}\" && test -z \"${AMDEP_FALSE}\"; then\n  as_fn_error $? \"conditional \\\"AMDEP\\\" was never defined.\nUsually this means the macro was only invoked conditionally.\" \"$LINENO\" 5\nfi\nif test -z \"${am__fastdepCC_TRUE}\" && test -z \"${am__fastdepCC_FALSE}\"; then\n  as_fn_error $? \"conditional \\\"am__fastdepCC\\\" was never defined.\nUsually this means the macro was only invoked conditionally.\" \"$LINENO\" 5\nfi\n\n: \"${CONFIG_STATUS=./config.status}\"\nac_write_fail=0\nac_clean_files_save=$ac_clean_files\nac_clean_files=\"$ac_clean_files $CONFIG_STATUS\"\n{ $as_echo \"$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS\" >&5\n$as_echo \"$as_me: creating $CONFIG_STATUS\" >&6;}\nas_write_fail=0\ncat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1\n#! $SHELL\n# Generated by $as_me.\n# Run this file to recreate the current configuration.\n# Compiler output produced by configure, useful for debugging\n# configure, is in config.log if it exists.\n\ndebug=false\nac_cs_recheck=false\nac_cs_silent=false\n\nSHELL=\\${CONFIG_SHELL-$SHELL}\nexport SHELL\n_ASEOF\ncat >>$CONFIG_STATUS <<\\_ASEOF || as_write_fail=1\n## -------------------- ##\n## M4sh Initialization. ##\n## -------------------- ##\n\n# Be more Bourne compatible\nDUALCASE=1; export DUALCASE # for MKS sh\nif test -n \"${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :\n  emulate sh\n  NULLCMD=:\n  # Pre-4.2 versions of Zsh do word splitting on ${1+\"$@\"}, which\n  # is contrary to our usage.  Disable this feature.\n  alias -g '${1+\"$@\"}'='\"$@\"'\n  setopt NO_GLOB_SUBST\nelse\n  case `(set -o) 2>/dev/null` in #(\n  *posix*) :\n    set -o posix ;; #(\n  *) :\n     ;;\nesac\nfi\n\n\nas_nl='\n'\nexport as_nl\n# Printing a long string crashes Solaris 7 /usr/bin/printf.\nas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\nas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo\nas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo\n# Prefer a ksh shell builtin over an external printf program on Solaris,\n# but without wasting forks for bash or zsh.\nif test -z \"$BASH_VERSION$ZSH_VERSION\" \\\n    && (test \"X`print -r -- $as_echo`\" = \"X$as_echo\") 2>/dev/null; then\n  as_echo='print -r --'\n  as_echo_n='print -rn --'\nelif (test \"X`printf %s $as_echo`\" = \"X$as_echo\") 2>/dev/null; then\n  as_echo='printf %s\\n'\n  as_echo_n='printf %s'\nelse\n  if test \"X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`\" = \"X-n $as_echo\"; then\n    as_echo_body='eval /usr/ucb/echo -n \"$1$as_nl\"'\n    as_echo_n='/usr/ucb/echo -n'\n  else\n    as_echo_body='eval expr \"X$1\" : \"X\\\\(.*\\\\)\"'\n    as_echo_n_body='eval\n      arg=$1;\n      case $arg in #(\n      *\"$as_nl\"*)\n\texpr \"X$arg\" : \"X\\\\(.*\\\\)$as_nl\";\n\targ=`expr \"X$arg\" : \".*$as_nl\\\\(.*\\\\)\"`;;\n      esac;\n      expr \"X$arg\" : \"X\\\\(.*\\\\)\" | tr -d \"$as_nl\"\n    '\n    export as_echo_n_body\n    as_echo_n='sh -c $as_echo_n_body as_echo'\n  fi\n  export as_echo_body\n  as_echo='sh -c $as_echo_body as_echo'\nfi\n\n# The user is always right.\nif test \"${PATH_SEPARATOR+set}\" != set; then\n  PATH_SEPARATOR=:\n  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {\n    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||\n      PATH_SEPARATOR=';'\n  }\nfi\n\n\n# IFS\n# We need space, tab and new line, in precisely that order.  Quoting is\n# there to prevent editors from complaining about space-tab.\n# (If _AS_PATH_WALK were called with IFS unset, it would disable word\n# splitting by setting IFS to empty value.)\nIFS=\" \"\"\t$as_nl\"\n\n# Find who we are.  Look in the path if we contain no directory separator.\nas_myself=\ncase $0 in #((\n  *[\\\\/]* ) as_myself=$0 ;;\n  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\nfor as_dir in $PATH\ndo\n  IFS=$as_save_IFS\n  test -z \"$as_dir\" && as_dir=.\n    test -r \"$as_dir/$0\" && as_myself=$as_dir/$0 && break\n  done\nIFS=$as_save_IFS\n\n     ;;\nesac\n# We did not find ourselves, most probably we were run as `sh COMMAND'\n# in which case we are not to be found in the path.\nif test \"x$as_myself\" = x; then\n  as_myself=$0\nfi\nif test ! -f \"$as_myself\"; then\n  $as_echo \"$as_myself: error: cannot find myself; rerun with an absolute file name\" >&2\n  exit 1\nfi\n\n# Unset variables that we do not need and which cause bugs (e.g. in\n# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the \"|| exit 1\"\n# suppresses any \"Segmentation fault\" message there.  '((' could\n# trigger a bug in pdksh 5.2.14.\nfor as_var in BASH_ENV ENV MAIL MAILPATH\ndo eval test x\\${$as_var+set} = xset \\\n  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :\ndone\nPS1='$ '\nPS2='> '\nPS4='+ '\n\n# NLS nuisances.\nLC_ALL=C\nexport LC_ALL\nLANGUAGE=C\nexport LANGUAGE\n\n# CDPATH.\n(unset CDPATH) >/dev/null 2>&1 && unset CDPATH\n\n\n# as_fn_error STATUS ERROR [LINENO LOG_FD]\n# ----------------------------------------\n# Output \"`basename $0`: error: ERROR\" to stderr. If LINENO and LOG_FD are\n# provided, also output the error to LOG_FD, referencing LINENO. Then exit the\n# script with STATUS, using 1 if that was 0.\nas_fn_error ()\n{\n  as_status=$1; test $as_status -eq 0 && as_status=1\n  if test \"$4\"; then\n    as_lineno=${as_lineno-\"$3\"} as_lineno_stack=as_lineno_stack=$as_lineno_stack\n    $as_echo \"$as_me:${as_lineno-$LINENO}: error: $2\" >&$4\n  fi\n  $as_echo \"$as_me: error: $2\" >&2\n  as_fn_exit $as_status\n} # as_fn_error\n\n\n# as_fn_set_status STATUS\n# -----------------------\n# Set $? to STATUS, without forking.\nas_fn_set_status ()\n{\n  return $1\n} # as_fn_set_status\n\n# as_fn_exit STATUS\n# -----------------\n# Exit the shell with STATUS, even in a \"trap 0\" or \"set -e\" context.\nas_fn_exit ()\n{\n  set +e\n  as_fn_set_status $1\n  exit $1\n} # as_fn_exit\n\n# as_fn_unset VAR\n# ---------------\n# Portably unset VAR.\nas_fn_unset ()\n{\n  { eval $1=; unset $1;}\n}\nas_unset=as_fn_unset\n# as_fn_append VAR VALUE\n# ----------------------\n# Append the text in VALUE to the end of the definition contained in VAR. Take\n# advantage of any shell optimizations that allow amortized linear growth over\n# repeated appends, instead of the typical quadratic growth present in naive\n# implementations.\nif (eval \"as_var=1; as_var+=2; test x\\$as_var = x12\") 2>/dev/null; then :\n  eval 'as_fn_append ()\n  {\n    eval $1+=\\$2\n  }'\nelse\n  as_fn_append ()\n  {\n    eval $1=\\$$1\\$2\n  }\nfi # as_fn_append\n\n# as_fn_arith ARG...\n# ------------------\n# Perform arithmetic evaluation on the ARGs, and store the result in the\n# global $as_val. Take advantage of shells that can avoid forks. The arguments\n# must be portable across $(()) and expr.\nif (eval \"test \\$(( 1 + 1 )) = 2\") 2>/dev/null; then :\n  eval 'as_fn_arith ()\n  {\n    as_val=$(( $* ))\n  }'\nelse\n  as_fn_arith ()\n  {\n    as_val=`expr \"$@\" || test $? -eq 1`\n  }\nfi # as_fn_arith\n\n\nif expr a : '\\(a\\)' >/dev/null 2>&1 &&\n   test \"X`expr 00001 : '.*\\(...\\)'`\" = X001; then\n  as_expr=expr\nelse\n  as_expr=false\nfi\n\nif (basename -- /) >/dev/null 2>&1 && test \"X`basename -- / 2>&1`\" = \"X/\"; then\n  as_basename=basename\nelse\n  as_basename=false\nfi\n\nif (as_dir=`dirname -- /` && test \"X$as_dir\" = X/) >/dev/null 2>&1; then\n  as_dirname=dirname\nelse\n  as_dirname=false\nfi\n\nas_me=`$as_basename -- \"$0\" ||\n$as_expr X/\"$0\" : '.*/\\([^/][^/]*\\)/*$' \\| \\\n\t X\"$0\" : 'X\\(//\\)$' \\| \\\n\t X\"$0\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X/\"$0\" |\n    sed '/^.*\\/\\([^/][^/]*\\)\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\/\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\/\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n\n# Avoid depending upon Character Ranges.\nas_cr_letters='abcdefghijklmnopqrstuvwxyz'\nas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'\nas_cr_Letters=$as_cr_letters$as_cr_LETTERS\nas_cr_digits='0123456789'\nas_cr_alnum=$as_cr_Letters$as_cr_digits\n\nECHO_C= ECHO_N= ECHO_T=\ncase `echo -n x` in #(((((\n-n*)\n  case `echo 'xy\\c'` in\n  *c*) ECHO_T='\t';;\t# ECHO_T is single tab character.\n  xy)  ECHO_C='\\c';;\n  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null\n       ECHO_T='\t';;\n  esac;;\n*)\n  ECHO_N='-n';;\nesac\n\nrm -f conf$$ conf$$.exe conf$$.file\nif test -d conf$$.dir; then\n  rm -f conf$$.dir/conf$$.file\nelse\n  rm -f conf$$.dir\n  mkdir conf$$.dir 2>/dev/null\nfi\nif (echo >conf$$.file) 2>/dev/null; then\n  if ln -s conf$$.file conf$$ 2>/dev/null; then\n    as_ln_s='ln -s'\n    # ... but there are two gotchas:\n    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.\n    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.\n    # In both cases, we have to default to `cp -pR'.\n    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||\n      as_ln_s='cp -pR'\n  elif ln conf$$.file conf$$ 2>/dev/null; then\n    as_ln_s=ln\n  else\n    as_ln_s='cp -pR'\n  fi\nelse\n  as_ln_s='cp -pR'\nfi\nrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file\nrmdir conf$$.dir 2>/dev/null\n\n\n# as_fn_mkdir_p\n# -------------\n# Create \"$as_dir\" as a directory, including parents if necessary.\nas_fn_mkdir_p ()\n{\n\n  case $as_dir in #(\n  -*) as_dir=./$as_dir;;\n  esac\n  test -d \"$as_dir\" || eval $as_mkdir_p || {\n    as_dirs=\n    while :; do\n      case $as_dir in #(\n      *\\'*) as_qdir=`$as_echo \"$as_dir\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"`;; #'(\n      *) as_qdir=$as_dir;;\n      esac\n      as_dirs=\"'$as_qdir' $as_dirs\"\n      as_dir=`$as_dirname -- \"$as_dir\" ||\n$as_expr X\"$as_dir\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$as_dir\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$as_dir\" : 'X\\(//\\)$' \\| \\\n\t X\"$as_dir\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$as_dir\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n      test -d \"$as_dir\" && break\n    done\n    test -z \"$as_dirs\" || eval \"mkdir $as_dirs\"\n  } || test -d \"$as_dir\" || as_fn_error $? \"cannot create directory $as_dir\"\n\n\n} # as_fn_mkdir_p\nif mkdir -p . 2>/dev/null; then\n  as_mkdir_p='mkdir -p \"$as_dir\"'\nelse\n  test -d ./-p && rmdir ./-p\n  as_mkdir_p=false\nfi\n\n\n# as_fn_executable_p FILE\n# -----------------------\n# Test if FILE is an executable regular file.\nas_fn_executable_p ()\n{\n  test -f \"$1\" && test -x \"$1\"\n} # as_fn_executable_p\nas_test_x='test -x'\nas_executable_p=as_fn_executable_p\n\n# Sed expression to map a string onto a valid CPP name.\nas_tr_cpp=\"eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'\"\n\n# Sed expression to map a string onto a valid variable name.\nas_tr_sh=\"eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'\"\n\n\nexec 6>&1\n## ----------------------------------- ##\n## Main body of $CONFIG_STATUS script. ##\n## ----------------------------------- ##\n_ASEOF\ntest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n# Save the log message, to keep $0 and so on meaningful, and to\n# report actual input values of CONFIG_FILES etc. instead of their\n# values after options handling.\nac_log=\"\nThis file was extended by $as_me, which was\ngenerated by GNU Autoconf 2.69.  Invocation command line was\n\n  CONFIG_FILES    = $CONFIG_FILES\n  CONFIG_HEADERS  = $CONFIG_HEADERS\n  CONFIG_LINKS    = $CONFIG_LINKS\n  CONFIG_COMMANDS = $CONFIG_COMMANDS\n  $ $0 $@\n\non `(hostname || uname -n) 2>/dev/null | sed 1q`\n\"\n\n_ACEOF\n\ncase $ac_config_files in *\"\n\"*) set x $ac_config_files; shift; ac_config_files=$*;;\nesac\n\ncase $ac_config_headers in *\"\n\"*) set x $ac_config_headers; shift; ac_config_headers=$*;;\nesac\n\n\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\n# Files that config.status was made for.\nconfig_files=\"$ac_config_files\"\nconfig_headers=\"$ac_config_headers\"\nconfig_commands=\"$ac_config_commands\"\n\n_ACEOF\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\nac_cs_usage=\"\\\n\\`$as_me' instantiates files and other configuration actions\nfrom templates according to the current configuration.  Unless the files\nand actions are specified as TAGs, all are instantiated by default.\n\nUsage: $0 [OPTION]... [TAG]...\n\n  -h, --help       print this help, then exit\n  -V, --version    print version number and configuration settings, then exit\n      --config     print configuration, then exit\n  -q, --quiet, --silent\n                   do not print progress messages\n  -d, --debug      don't remove temporary files\n      --recheck    update $as_me by reconfiguring in the same conditions\n      --file=FILE[:TEMPLATE]\n                   instantiate the configuration file FILE\n      --header=FILE[:TEMPLATE]\n                   instantiate the configuration header FILE\n\nConfiguration files:\n$config_files\n\nConfiguration headers:\n$config_headers\n\nConfiguration commands:\n$config_commands\n\nReport bugs to the package provider.\"\n\n_ACEOF\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\nac_cs_config=\"`$as_echo \"$ac_configure_args\" | sed 's/^ //; s/[\\\\\"\"\\`\\$]/\\\\\\\\&/g'`\"\nac_cs_version=\"\\\\\nconfig.status\nconfigured by $0, generated by GNU Autoconf 2.69,\n  with options \\\\\"\\$ac_cs_config\\\\\"\n\nCopyright (C) 2012 Free Software Foundation, Inc.\nThis config.status script is free software; the Free Software Foundation\ngives unlimited permission to copy, distribute and modify it.\"\n\nac_pwd='$ac_pwd'\nsrcdir='$srcdir'\nINSTALL='$INSTALL'\nMKDIR_P='$MKDIR_P'\nAWK='$AWK'\ntest -n \"\\$AWK\" || AWK=awk\n_ACEOF\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n# The default lists apply if the user does not specify any file.\nac_need_defaults=:\nwhile test $# != 0\ndo\n  case $1 in\n  --*=?*)\n    ac_option=`expr \"X$1\" : 'X\\([^=]*\\)='`\n    ac_optarg=`expr \"X$1\" : 'X[^=]*=\\(.*\\)'`\n    ac_shift=:\n    ;;\n  --*=)\n    ac_option=`expr \"X$1\" : 'X\\([^=]*\\)='`\n    ac_optarg=\n    ac_shift=:\n    ;;\n  *)\n    ac_option=$1\n    ac_optarg=$2\n    ac_shift=shift\n    ;;\n  esac\n\n  case $ac_option in\n  # Handling of the options.\n  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)\n    ac_cs_recheck=: ;;\n  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )\n    $as_echo \"$ac_cs_version\"; exit ;;\n  --config | --confi | --conf | --con | --co | --c )\n    $as_echo \"$ac_cs_config\"; exit ;;\n  --debug | --debu | --deb | --de | --d | -d )\n    debug=: ;;\n  --file | --fil | --fi | --f )\n    $ac_shift\n    case $ac_optarg in\n    *\\'*) ac_optarg=`$as_echo \"$ac_optarg\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"` ;;\n    '') as_fn_error $? \"missing file argument\" ;;\n    esac\n    as_fn_append CONFIG_FILES \" '$ac_optarg'\"\n    ac_need_defaults=false;;\n  --header | --heade | --head | --hea )\n    $ac_shift\n    case $ac_optarg in\n    *\\'*) ac_optarg=`$as_echo \"$ac_optarg\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"` ;;\n    esac\n    as_fn_append CONFIG_HEADERS \" '$ac_optarg'\"\n    ac_need_defaults=false;;\n  --he | --h)\n    # Conflict between --help and --header\n    as_fn_error $? \"ambiguous option: \\`$1'\nTry \\`$0 --help' for more information.\";;\n  --help | --hel | -h )\n    $as_echo \"$ac_cs_usage\"; exit ;;\n  -q | -quiet | --quiet | --quie | --qui | --qu | --q \\\n  | -silent | --silent | --silen | --sile | --sil | --si | --s)\n    ac_cs_silent=: ;;\n\n  # This is an error.\n  -*) as_fn_error $? \"unrecognized option: \\`$1'\nTry \\`$0 --help' for more information.\" ;;\n\n  *) as_fn_append ac_config_targets \" $1\"\n     ac_need_defaults=false ;;\n\n  esac\n  shift\ndone\n\nac_configure_extra_args=\n\nif $ac_cs_silent; then\n  exec 6>/dev/null\n  ac_configure_extra_args=\"$ac_configure_extra_args --silent\"\nfi\n\n_ACEOF\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\nif \\$ac_cs_recheck; then\n  set X $SHELL '$0' $ac_configure_args \\$ac_configure_extra_args --no-create --no-recursion\n  shift\n  \\$as_echo \"running CONFIG_SHELL=$SHELL \\$*\" >&6\n  CONFIG_SHELL='$SHELL'\n  export CONFIG_SHELL\n  exec \"\\$@\"\nfi\n\n_ACEOF\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\nexec 5>>config.log\n{\n  echo\n  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX\n## Running $as_me. ##\n_ASBOX\n  $as_echo \"$ac_log\"\n} >&5\n\n_ACEOF\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\n#\n# INIT-COMMANDS\n#\nAMDEP_TRUE=\"$AMDEP_TRUE\" ac_aux_dir=\"$ac_aux_dir\"\n\n_ACEOF\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n\n# Handling of arguments.\nfor ac_config_target in $ac_config_targets\ndo\n  case $ac_config_target in\n    \"config.h\") CONFIG_HEADERS=\"$CONFIG_HEADERS config.h\" ;;\n    \"depfiles\") CONFIG_COMMANDS=\"$CONFIG_COMMANDS depfiles\" ;;\n    \"Makefile\") CONFIG_FILES=\"$CONFIG_FILES Makefile\" ;;\n    \"doc/Makefile\") CONFIG_FILES=\"$CONFIG_FILES doc/Makefile\" ;;\n    \"include/Makefile\") CONFIG_FILES=\"$CONFIG_FILES include/Makefile\" ;;\n    \"src/Makefile\") CONFIG_FILES=\"$CONFIG_FILES src/Makefile\" ;;\n\n  *) as_fn_error $? \"invalid argument: \\`$ac_config_target'\" \"$LINENO\" 5;;\n  esac\ndone\n\n\n# If the user did not use the arguments to specify the items to instantiate,\n# then the envvar interface is used.  Set only those that are not.\n# We use the long form for the default assignment because of an extremely\n# bizarre bug on SunOS 4.1.3.\nif $ac_need_defaults; then\n  test \"${CONFIG_FILES+set}\" = set || CONFIG_FILES=$config_files\n  test \"${CONFIG_HEADERS+set}\" = set || CONFIG_HEADERS=$config_headers\n  test \"${CONFIG_COMMANDS+set}\" = set || CONFIG_COMMANDS=$config_commands\nfi\n\n# Have a temporary directory for convenience.  Make it in the build tree\n# simply because there is no reason against having it here, and in addition,\n# creating and moving files from /tmp can sometimes cause problems.\n# Hook for its removal unless debugging.\n# Note that there is a small window in which the directory will not be cleaned:\n# after its creation but before its name has been assigned to `$tmp'.\n$debug ||\n{\n  tmp= ac_tmp=\n  trap 'exit_status=$?\n  : \"${ac_tmp:=$tmp}\"\n  { test ! -d \"$ac_tmp\" || rm -fr \"$ac_tmp\"; } && exit $exit_status\n' 0\n  trap 'as_fn_exit 1' 1 2 13 15\n}\n# Create a (secure) tmp directory for tmp files.\n\n{\n  tmp=`(umask 077 && mktemp -d \"./confXXXXXX\") 2>/dev/null` &&\n  test -d \"$tmp\"\n}  ||\n{\n  tmp=./conf$$-$RANDOM\n  (umask 077 && mkdir \"$tmp\")\n} || as_fn_error $? \"cannot create a temporary directory in .\" \"$LINENO\" 5\nac_tmp=$tmp\n\n# Set up the scripts for CONFIG_FILES section.\n# No need to generate them if there are no CONFIG_FILES.\n# This happens for instance with `./config.status config.h'.\nif test -n \"$CONFIG_FILES\"; then\n\n\nac_cr=`echo X | tr X '\\015'`\n# On cygwin, bash can eat \\r inside `` if the user requested igncr.\n# But we know of no other shell where ac_cr would be empty at this\n# point, so we can use a bashism as a fallback.\nif test \"x$ac_cr\" = x; then\n  eval ac_cr=\\$\\'\\\\r\\'\nfi\nac_cs_awk_cr=`$AWK 'BEGIN { print \"a\\rb\" }' </dev/null 2>/dev/null`\nif test \"$ac_cs_awk_cr\" = \"a${ac_cr}b\"; then\n  ac_cs_awk_cr='\\\\r'\nelse\n  ac_cs_awk_cr=$ac_cr\nfi\n\necho 'BEGIN {' >\"$ac_tmp/subs1.awk\" &&\n_ACEOF\n\n\n{\n  echo \"cat >conf$$subs.awk <<_ACEOF\" &&\n  echo \"$ac_subst_vars\" | sed 's/.*/&!$&$ac_delim/' &&\n  echo \"_ACEOF\"\n} >conf$$subs.sh ||\n  as_fn_error $? \"could not make $CONFIG_STATUS\" \"$LINENO\" 5\nac_delim_num=`echo \"$ac_subst_vars\" | grep -c '^'`\nac_delim='%!_!# '\nfor ac_last_try in false false false false false :; do\n  . ./conf$$subs.sh ||\n    as_fn_error $? \"could not make $CONFIG_STATUS\" \"$LINENO\" 5\n\n  ac_delim_n=`sed -n \"s/.*$ac_delim\\$/X/p\" conf$$subs.awk | grep -c X`\n  if test $ac_delim_n = $ac_delim_num; then\n    break\n  elif $ac_last_try; then\n    as_fn_error $? \"could not make $CONFIG_STATUS\" \"$LINENO\" 5\n  else\n    ac_delim=\"$ac_delim!$ac_delim _$ac_delim!! \"\n  fi\ndone\nrm -f conf$$subs.sh\n\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\ncat >>\"\\$ac_tmp/subs1.awk\" <<\\\\_ACAWK &&\n_ACEOF\nsed -n '\nh\ns/^/S[\"/; s/!.*/\"]=/\np\ng\ns/^[^!]*!//\n:repl\nt repl\ns/'\"$ac_delim\"'$//\nt delim\n:nl\nh\ns/\\(.\\{148\\}\\)..*/\\1/\nt more1\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\\\\n\"\\\\/\np\nn\nb repl\n:more1\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\"\\\\/\np\ng\ns/.\\{148\\}//\nt nl\n:delim\nh\ns/\\(.\\{148\\}\\)..*/\\1/\nt more2\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\"/\np\nb\n:more2\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\"\\\\/\np\ng\ns/.\\{148\\}//\nt delim\n' <conf$$subs.awk | sed '\n/^[^\"\"]/{\n  N\n  s/\\n//\n}\n' >>$CONFIG_STATUS || ac_write_fail=1\nrm -f conf$$subs.awk\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\n_ACAWK\ncat >>\"\\$ac_tmp/subs1.awk\" <<_ACAWK &&\n  for (key in S) S_is_set[key] = 1\n  FS = \"\u0007\"\n\n}\n{\n  line = $ 0\n  nfields = split(line, field, \"@\")\n  substed = 0\n  len = length(field[1])\n  for (i = 2; i < nfields; i++) {\n    key = field[i]\n    keylen = length(key)\n    if (S_is_set[key]) {\n      value = S[key]\n      line = substr(line, 1, len) \"\" value \"\" substr(line, len + keylen + 3)\n      len += length(value) + length(field[++i])\n      substed = 1\n    } else\n      len += 1 + keylen\n  }\n\n  print line\n}\n\n_ACAWK\n_ACEOF\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\nif sed \"s/$ac_cr//\" < /dev/null > /dev/null 2>&1; then\n  sed \"s/$ac_cr\\$//; s/$ac_cr/$ac_cs_awk_cr/g\"\nelse\n  cat\nfi < \"$ac_tmp/subs1.awk\" > \"$ac_tmp/subs.awk\" \\\n  || as_fn_error $? \"could not setup config files machinery\" \"$LINENO\" 5\n_ACEOF\n\n# VPATH may cause trouble with some makes, so we remove sole $(srcdir),\n# ${srcdir} and @srcdir@ entries from VPATH if srcdir is \".\", strip leading and\n# trailing colons and then remove the whole line if VPATH becomes empty\n# (actually we leave an empty line to preserve line numbers).\nif test \"x$srcdir\" = x.; then\n  ac_vpsub='/^[\t ]*VPATH[\t ]*=[\t ]*/{\nh\ns///\ns/^/:/\ns/[\t ]*$/:/\ns/:\\$(srcdir):/:/g\ns/:\\${srcdir}:/:/g\ns/:@srcdir@:/:/g\ns/^:*//\ns/:*$//\nx\ns/\\(=[\t ]*\\).*/\\1/\nG\ns/\\n//\ns/^[^=]*=[\t ]*$//\n}'\nfi\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\nfi # test -n \"$CONFIG_FILES\"\n\n# Set up the scripts for CONFIG_HEADERS section.\n# No need to generate them if there are no CONFIG_HEADERS.\n# This happens for instance with `./config.status Makefile'.\nif test -n \"$CONFIG_HEADERS\"; then\ncat >\"$ac_tmp/defines.awk\" <<\\_ACAWK ||\nBEGIN {\n_ACEOF\n\n# Transform confdefs.h into an awk script `defines.awk', embedded as\n# here-document in config.status, that substitutes the proper values into\n# config.h.in to produce config.h.\n\n# Create a delimiter string that does not exist in confdefs.h, to ease\n# handling of long lines.\nac_delim='%!_!# '\nfor ac_last_try in false false :; do\n  ac_tt=`sed -n \"/$ac_delim/p\" confdefs.h`\n  if test -z \"$ac_tt\"; then\n    break\n  elif $ac_last_try; then\n    as_fn_error $? \"could not make $CONFIG_HEADERS\" \"$LINENO\" 5\n  else\n    ac_delim=\"$ac_delim!$ac_delim _$ac_delim!! \"\n  fi\ndone\n\n# For the awk script, D is an array of macro values keyed by name,\n# likewise P contains macro parameters if any.  Preserve backslash\n# newline sequences.\n\nac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*\nsed -n '\ns/.\\{148\\}/&'\"$ac_delim\"'/g\nt rset\n:rset\ns/^[\t ]*#[\t ]*define[\t ][\t ]*/ /\nt def\nd\n:def\ns/\\\\$//\nt bsnl\ns/[\"\\\\]/\\\\&/g\ns/^ \\('\"$ac_word_re\"'\\)\\(([^()]*)\\)[\t ]*\\(.*\\)/P[\"\\1\"]=\"\\2\"\\\nD[\"\\1\"]=\" \\3\"/p\ns/^ \\('\"$ac_word_re\"'\\)[\t ]*\\(.*\\)/D[\"\\1\"]=\" \\2\"/p\nd\n:bsnl\ns/[\"\\\\]/\\\\&/g\ns/^ \\('\"$ac_word_re\"'\\)\\(([^()]*)\\)[\t ]*\\(.*\\)/P[\"\\1\"]=\"\\2\"\\\nD[\"\\1\"]=\" \\3\\\\\\\\\\\\n\"\\\\/p\nt cont\ns/^ \\('\"$ac_word_re\"'\\)[\t ]*\\(.*\\)/D[\"\\1\"]=\" \\2\\\\\\\\\\\\n\"\\\\/p\nt cont\nd\n:cont\nn\ns/.\\{148\\}/&'\"$ac_delim\"'/g\nt clear\n:clear\ns/\\\\$//\nt bsnlc\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\"/p\nd\n:bsnlc\ns/[\"\\\\]/\\\\&/g; s/^/\"/; s/$/\\\\\\\\\\\\n\"\\\\/p\nb cont\n' <confdefs.h | sed '\ns/'\"$ac_delim\"'/\"\\\\\\\n\"/g' >>$CONFIG_STATUS || ac_write_fail=1\n\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\n  for (key in D) D_is_set[key] = 1\n  FS = \"\u0007\"\n}\n/^[\\t ]*#[\\t ]*(define|undef)[\\t ]+$ac_word_re([\\t (]|\\$)/ {\n  line = \\$ 0\n  split(line, arg, \" \")\n  if (arg[1] == \"#\") {\n    defundef = arg[2]\n    mac1 = arg[3]\n  } else {\n    defundef = substr(arg[1], 2)\n    mac1 = arg[2]\n  }\n  split(mac1, mac2, \"(\") #)\n  macro = mac2[1]\n  prefix = substr(line, 1, index(line, defundef) - 1)\n  if (D_is_set[macro]) {\n    # Preserve the white space surrounding the \"#\".\n    print prefix \"define\", macro P[macro] D[macro]\n    next\n  } else {\n    # Replace #undef with comments.  This is necessary, for example,\n    # in the case of _POSIX_SOURCE, which is predefined and required\n    # on some systems where configure will not decide to define it.\n    if (defundef == \"undef\") {\n      print \"/*\", prefix defundef, macro, \"*/\"\n      next\n    }\n  }\n}\n{ print }\n_ACAWK\n_ACEOF\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n  as_fn_error $? \"could not setup config headers machinery\" \"$LINENO\" 5\nfi # test -n \"$CONFIG_HEADERS\"\n\n\neval set X \"  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS\"\nshift\nfor ac_tag\ndo\n  case $ac_tag in\n  :[FHLC]) ac_mode=$ac_tag; continue;;\n  esac\n  case $ac_mode$ac_tag in\n  :[FHL]*:*);;\n  :L* | :C*:*) as_fn_error $? \"invalid tag \\`$ac_tag'\" \"$LINENO\" 5;;\n  :[FH]-) ac_tag=-:-;;\n  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;\n  esac\n  ac_save_IFS=$IFS\n  IFS=:\n  set x $ac_tag\n  IFS=$ac_save_IFS\n  shift\n  ac_file=$1\n  shift\n\n  case $ac_mode in\n  :L) ac_source=$1;;\n  :[FH])\n    ac_file_inputs=\n    for ac_f\n    do\n      case $ac_f in\n      -) ac_f=\"$ac_tmp/stdin\";;\n      *) # Look for the file first in the build tree, then in the source tree\n\t # (if the path is not absolute).  The absolute path cannot be DOS-style,\n\t # because $ac_f cannot contain `:'.\n\t test -f \"$ac_f\" ||\n\t   case $ac_f in\n\t   [\\\\/$]*) false;;\n\t   *) test -f \"$srcdir/$ac_f\" && ac_f=\"$srcdir/$ac_f\";;\n\t   esac ||\n\t   as_fn_error 1 \"cannot find input file: \\`$ac_f'\" \"$LINENO\" 5;;\n      esac\n      case $ac_f in *\\'*) ac_f=`$as_echo \"$ac_f\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"`;; esac\n      as_fn_append ac_file_inputs \" '$ac_f'\"\n    done\n\n    # Let's still pretend it is `configure' which instantiates (i.e., don't\n    # use $as_me), people would be surprised to read:\n    #    /* config.h.  Generated by config.status.  */\n    configure_input='Generated from '`\n\t  $as_echo \"$*\" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'\n\t`' by configure.'\n    if test x\"$ac_file\" != x-; then\n      configure_input=\"$ac_file.  $configure_input\"\n      { $as_echo \"$as_me:${as_lineno-$LINENO}: creating $ac_file\" >&5\n$as_echo \"$as_me: creating $ac_file\" >&6;}\n    fi\n    # Neutralize special characters interpreted by sed in replacement strings.\n    case $configure_input in #(\n    *\\&* | *\\|* | *\\\\* )\n       ac_sed_conf_input=`$as_echo \"$configure_input\" |\n       sed 's/[\\\\\\\\&|]/\\\\\\\\&/g'`;; #(\n    *) ac_sed_conf_input=$configure_input;;\n    esac\n\n    case $ac_tag in\n    *:-:* | *:-) cat >\"$ac_tmp/stdin\" \\\n      || as_fn_error $? \"could not create $ac_file\" \"$LINENO\" 5 ;;\n    esac\n    ;;\n  esac\n\n  ac_dir=`$as_dirname -- \"$ac_file\" ||\n$as_expr X\"$ac_file\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$ac_file\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$ac_file\" : 'X\\(//\\)$' \\| \\\n\t X\"$ac_file\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$ac_file\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n  as_dir=\"$ac_dir\"; as_fn_mkdir_p\n  ac_builddir=.\n\ncase \"$ac_dir\" in\n.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;\n*)\n  ac_dir_suffix=/`$as_echo \"$ac_dir\" | sed 's|^\\.[\\\\/]||'`\n  # A \"..\" for each directory in $ac_dir_suffix.\n  ac_top_builddir_sub=`$as_echo \"$ac_dir_suffix\" | sed 's|/[^\\\\/]*|/..|g;s|/||'`\n  case $ac_top_builddir_sub in\n  \"\") ac_top_builddir_sub=. ac_top_build_prefix= ;;\n  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;\n  esac ;;\nesac\nac_abs_top_builddir=$ac_pwd\nac_abs_builddir=$ac_pwd$ac_dir_suffix\n# for backward compatibility:\nac_top_builddir=$ac_top_build_prefix\n\ncase $srcdir in\n  .)  # We are building in place.\n    ac_srcdir=.\n    ac_top_srcdir=$ac_top_builddir_sub\n    ac_abs_top_srcdir=$ac_pwd ;;\n  [\\\\/]* | ?:[\\\\/]* )  # Absolute name.\n    ac_srcdir=$srcdir$ac_dir_suffix;\n    ac_top_srcdir=$srcdir\n    ac_abs_top_srcdir=$srcdir ;;\n  *) # Relative name.\n    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix\n    ac_top_srcdir=$ac_top_build_prefix$srcdir\n    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;\nesac\nac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix\n\n\n  case $ac_mode in\n  :F)\n  #\n  # CONFIG_FILE\n  #\n\n  case $INSTALL in\n  [\\\\/$]* | ?:[\\\\/]* ) ac_INSTALL=$INSTALL ;;\n  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;\n  esac\n  ac_MKDIR_P=$MKDIR_P\n  case $MKDIR_P in\n  [\\\\/$]* | ?:[\\\\/]* ) ;;\n  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;\n  esac\n_ACEOF\n\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n# If the template does not know about datarootdir, expand it.\n# FIXME: This hack should be removed a few years after 2.60.\nac_datarootdir_hack=; ac_datarootdir_seen=\nac_sed_dataroot='\n/datarootdir/ {\n  p\n  q\n}\n/@datadir@/p\n/@docdir@/p\n/@infodir@/p\n/@localedir@/p\n/@mandir@/p'\ncase `eval \"sed -n \\\"\\$ac_sed_dataroot\\\" $ac_file_inputs\"` in\n*datarootdir*) ac_datarootdir_seen=yes;;\n*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting\" >&5\n$as_echo \"$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting\" >&2;}\n_ACEOF\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\n  ac_datarootdir_hack='\n  s&@datadir@&$datadir&g\n  s&@docdir@&$docdir&g\n  s&@infodir@&$infodir&g\n  s&@localedir@&$localedir&g\n  s&@mandir@&$mandir&g\n  s&\\\\\\${datarootdir}&$datarootdir&g' ;;\nesac\n_ACEOF\n\n# Neutralize VPATH when `$srcdir' = `.'.\n# Shell code in configure.ac might set extrasub.\n# FIXME: do we really want to maintain this feature?\ncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1\nac_sed_extra=\"$ac_vpsub\n$extrasub\n_ACEOF\ncat >>$CONFIG_STATUS <<\\_ACEOF || ac_write_fail=1\n:t\n/@[a-zA-Z_][a-zA-Z_0-9]*@/!b\ns|@configure_input@|$ac_sed_conf_input|;t t\ns&@top_builddir@&$ac_top_builddir_sub&;t t\ns&@top_build_prefix@&$ac_top_build_prefix&;t t\ns&@srcdir@&$ac_srcdir&;t t\ns&@abs_srcdir@&$ac_abs_srcdir&;t t\ns&@top_srcdir@&$ac_top_srcdir&;t t\ns&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t\ns&@builddir@&$ac_builddir&;t t\ns&@abs_builddir@&$ac_abs_builddir&;t t\ns&@abs_top_builddir@&$ac_abs_top_builddir&;t t\ns&@INSTALL@&$ac_INSTALL&;t t\ns&@MKDIR_P@&$ac_MKDIR_P&;t t\n$ac_datarootdir_hack\n\"\neval sed \\\"\\$ac_sed_extra\\\" \"$ac_file_inputs\" | $AWK -f \"$ac_tmp/subs.awk\" \\\n  >$ac_tmp/out || as_fn_error $? \"could not create $ac_file\" \"$LINENO\" 5\n\ntest -z \"$ac_datarootdir_hack$ac_datarootdir_seen\" &&\n  { ac_out=`sed -n '/\\${datarootdir}/p' \"$ac_tmp/out\"`; test -n \"$ac_out\"; } &&\n  { ac_out=`sed -n '/^[\t ]*datarootdir[\t ]*:*=/p' \\\n      \"$ac_tmp/out\"`; test -z \"$ac_out\"; } &&\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \\`datarootdir'\nwhich seems to be undefined.  Please make sure it is defined\" >&5\n$as_echo \"$as_me: WARNING: $ac_file contains a reference to the variable \\`datarootdir'\nwhich seems to be undefined.  Please make sure it is defined\" >&2;}\n\n  rm -f \"$ac_tmp/stdin\"\n  case $ac_file in\n  -) cat \"$ac_tmp/out\" && rm -f \"$ac_tmp/out\";;\n  *) rm -f \"$ac_file\" && mv \"$ac_tmp/out\" \"$ac_file\";;\n  esac \\\n  || as_fn_error $? \"could not create $ac_file\" \"$LINENO\" 5\n ;;\n  :H)\n  #\n  # CONFIG_HEADER\n  #\n  if test x\"$ac_file\" != x-; then\n    {\n      $as_echo \"/* $configure_input  */\" \\\n      && eval '$AWK -f \"$ac_tmp/defines.awk\"' \"$ac_file_inputs\"\n    } >\"$ac_tmp/config.h\" \\\n      || as_fn_error $? \"could not create $ac_file\" \"$LINENO\" 5\n    if diff \"$ac_file\" \"$ac_tmp/config.h\" >/dev/null 2>&1; then\n      { $as_echo \"$as_me:${as_lineno-$LINENO}: $ac_file is unchanged\" >&5\n$as_echo \"$as_me: $ac_file is unchanged\" >&6;}\n    else\n      rm -f \"$ac_file\"\n      mv \"$ac_tmp/config.h\" \"$ac_file\" \\\n\t|| as_fn_error $? \"could not create $ac_file\" \"$LINENO\" 5\n    fi\n  else\n    $as_echo \"/* $configure_input  */\" \\\n      && eval '$AWK -f \"$ac_tmp/defines.awk\"' \"$ac_file_inputs\" \\\n      || as_fn_error $? \"could not create -\" \"$LINENO\" 5\n  fi\n# Compute \"$ac_file\"'s index in $config_headers.\n_am_arg=\"$ac_file\"\n_am_stamp_count=1\nfor _am_header in $config_headers :; do\n  case $_am_header in\n    $_am_arg | $_am_arg:* )\n      break ;;\n    * )\n      _am_stamp_count=`expr $_am_stamp_count + 1` ;;\n  esac\ndone\necho \"timestamp for $_am_arg\" >`$as_dirname -- \"$_am_arg\" ||\n$as_expr X\"$_am_arg\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$_am_arg\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$_am_arg\" : 'X\\(//\\)$' \\| \\\n\t X\"$_am_arg\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$_am_arg\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`/stamp-h$_am_stamp_count\n ;;\n\n  :C)  { $as_echo \"$as_me:${as_lineno-$LINENO}: executing $ac_file commands\" >&5\n$as_echo \"$as_me: executing $ac_file commands\" >&6;}\n ;;\n  esac\n\n\n  case $ac_file$ac_mode in\n    \"depfiles\":C) test x\"$AMDEP_TRUE\" != x\"\" || {\n  # Autoconf 2.62 quotes --file arguments for eval, but not when files\n  # are listed without --file.  Let's play safe and only enable the eval\n  # if we detect the quoting.\n  case $CONFIG_FILES in\n  *\\'*) eval set x \"$CONFIG_FILES\" ;;\n  *)   set x $CONFIG_FILES ;;\n  esac\n  shift\n  for mf\n  do\n    # Strip MF so we end up with the name of the file.\n    mf=`echo \"$mf\" | sed -e 's/:.*$//'`\n    # Check whether this is an Automake generated Makefile or not.\n    # We used to match only the files named `Makefile.in', but\n    # some people rename them; so instead we look at the file content.\n    # Grep'ing the first line is not enough: some people post-process\n    # each Makefile.in and add a new line on top of each file to say so.\n    # Grep'ing the whole file is not good either: AIX grep has a line\n    # limit of 2048, but all sed's we know have understand at least 4000.\n    if sed -n 's,^#.*generated by automake.*,X,p' \"$mf\" | grep X >/dev/null 2>&1; then\n      dirpart=`$as_dirname -- \"$mf\" ||\n$as_expr X\"$mf\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$mf\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$mf\" : 'X\\(//\\)$' \\| \\\n\t X\"$mf\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$mf\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n    else\n      continue\n    fi\n    # Extract the definition of DEPDIR, am__include, and am__quote\n    # from the Makefile without running `make'.\n    DEPDIR=`sed -n 's/^DEPDIR = //p' < \"$mf\"`\n    test -z \"$DEPDIR\" && continue\n    am__include=`sed -n 's/^am__include = //p' < \"$mf\"`\n    test -z \"am__include\" && continue\n    am__quote=`sed -n 's/^am__quote = //p' < \"$mf\"`\n    # When using ansi2knr, U may be empty or an underscore; expand it\n    U=`sed -n 's/^U = //p' < \"$mf\"`\n    # Find all dependency output files, they are included files with\n    # $(DEPDIR) in their names.  We invoke sed twice because it is the\n    # simplest approach to changing $(DEPDIR) to its actual value in the\n    # expansion.\n    for file in `sed -n \"\n      s/^$am__include $am__quote\\(.*(DEPDIR).*\\)$am__quote\"'$/\\1/p' <\"$mf\" | \\\n\t sed -e 's/\\$(DEPDIR)/'\"$DEPDIR\"'/g' -e 's/\\$U/'\"$U\"'/g'`; do\n      # Make sure the directory exists.\n      test -f \"$dirpart/$file\" && continue\n      fdir=`$as_dirname -- \"$file\" ||\n$as_expr X\"$file\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t X\"$file\" : 'X\\(//\\)[^/]' \\| \\\n\t X\"$file\" : 'X\\(//\\)$' \\| \\\n\t X\"$file\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n$as_echo X\"$file\" |\n    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)[^/].*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\/\\)$/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\(\\/\\).*/{\n\t    s//\\1/\n\t    q\n\t  }\n\t  s/.*/./; q'`\n      as_dir=$dirpart/$fdir; as_fn_mkdir_p\n      # echo \"creating $dirpart/$file\"\n      echo '# dummy' > \"$dirpart/$file\"\n    done\n  done\n}\n ;;\n\n  esac\ndone # for ac_tag\n\n\nas_fn_exit 0\n_ACEOF\nac_clean_files=$ac_clean_files_save\n\ntest $ac_write_fail = 0 ||\n  as_fn_error $? \"write failure creating $CONFIG_STATUS\" \"$LINENO\" 5\n\n\n# configure is writing to config.log, and then calls config.status.\n# config.status does its own redirection, appending to config.log.\n# Unfortunately, on DOS this fails, as config.log is still kept open\n# by configure, so config.status won't be able to write to it; its\n# output is simply discarded.  So we exec the FD to /dev/null,\n# effectively closing config.log, so it can be properly (re)opened and\n# appended to by config.status.  When coming back to configure, we\n# need to make the FD available again.\nif test \"$no_create\" != yes; then\n  ac_cs_success=:\n  ac_config_status_args=\n  test \"$silent\" = yes &&\n    ac_config_status_args=\"$ac_config_status_args --quiet\"\n  exec 5>/dev/null\n  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false\n  exec 5>>config.log\n  # Use ||, not &&, to avoid exiting from the if with $? = 1, which\n  # would make configure fail if this is the last instruction.\n  $ac_cs_success || as_fn_exit 1\nfi\nif test -n \"$ac_unrecognized_opts\" && test \"$enable_option_checking\" != no; then\n  { $as_echo \"$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts\" >&5\n$as_echo \"$as_me: WARNING: unrecognized options: $ac_unrecognized_opts\" >&2;}\nfi\n\n\n"
  },
  {
    "path": "configure.ac",
    "content": "AC_INIT(include/sub.h)\nAM_CONFIG_HEADER(config.h)\nAM_INIT_AUTOMAKE(sipcalc,1.1.6)\nAC_PROG_CC\nAC_PROG_INSTALL\n\ndnl - Configuration.\nAC_HEADER_STDC\nAC_CHECK_HEADERS(sys/ioctl.h unistd.h sys/types.h sys/bitypes.h sys/sockio.h netdb.h ctype.h)\nAC_PROG_GCC_TRADITIONAL\ndnl Solaris also needs libnsl for inet_ntoa and friends.\nAC_CHECK_LIB(nsl, inet_ntoa,\n[\n  AC_DEFINE(HAVE_LIBNSL, 1, libnsl)\n  LIBS=\"$LIBS -lnsl\"\n])\nAC_CHECK_FUNCS(socket strstr strtol strtoul gethostbyname gethostbyname2 inet_ntop getipnodebyaddr getaddrinfo)\n\ndnl - Include /usr/local/include if it exists.\nif test -d /usr/local/include;\nthen\n  CFLAGS=\"${CFLAGS} -I/usr/local/include\"\nfi\n\ndnl - Include /usr/local/lib if it exists.\nif test -d /usr/local/lib;\nthen\n  LIBS=\"${LIBS} -L/usr/local/lib\"\nfi\n\n\ndnl Check if getopt_long is available.\n\nAC_DEFUN([sii_GETOPT_LONG],\n[\n  AC_CHECK_HEADERS(getopt.h,\n  [\n    AC_DEFINE(HAVE_GETOPT_H, 1, getopt_h)\n  ],\n  [\n    if test -f /usr/local/include/getopt.h;\n    then\n      echo checking for getopt.h in /usr/local/include... yes\n      AC_DEFINE(HAVE_GETOPT_H, 1, getopt_h)\n    fi\n  ])\n  AC_CHECK_FUNCS(getopt_long,,\n  [\n    AC_CHECK_LIB(gnugetopt, getopt_long,\n    [\n      AC_DEFINE(HAVE_GETOPT_LONG, 1, getopt_long)\n      LIBS=\"$LIBS -lgnugetopt\"\n    ])\n  ])\n])\n\n\ndnl Check if we need netdb.h for resolver routines.\n\nAC_DEFUN([sii_GETADDRINFO],\nAC_MSG_CHECKING(for getaddrinfo in netdb.h)\nAC_TRY_COMPILE(\n[\n  #include <netdb.h>\n],\n[struct addrinfo h; struct addrinfo *r; getaddrinfo(\"127.0.0.1\", NULL, &h, &r)],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_GETADDRINFO_NETDB, 1, getaddrinfo_netdb)\n],\nAC_MSG_RESULT(no)))\n\n\nAC_DEFUN(sii_GETHOSTBYNAME,\nAC_MSG_CHECKING(for gethostbyname in netdb.h)\nAC_TRY_COMPILE(\n[\n  #include <netdb.h>\n],\n[struct hostent *h; h=gethostbyname(\"127.0.0.1\")],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_GETHOSTBYNAME_NETDB, 1, gethostbyname_netdb)\n],\nAC_MSG_RESULT(no)))\n\n\nAC_DEFUN(sii_GETHOSTBYNAME2,\nAC_MSG_CHECKING(for gethostbyname2 in netdb.h)\nAC_TRY_COMPILE(\n[\n  #include <netdb.h>\n],\n[struct hostent *h; h=gethostbyname(\"127.0.0.1\", AF_INET)],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_GETHOSTBYNAME2_NETDB, 1, gethostbyname2_netdb)\n],\nAC_MSG_RESULT(no)))\n\n\ndnl Check if struct sockaddr has member sa_len\n\nAC_DEFUN(sii_SA_LEN,\nAC_MSG_CHECKING(if struct sockaddr has sa_len field)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n  #include <sys/socket.h>\n],\n[struct sockaddr sa;int x; x=sizeof(sa.sa_len);],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_SA_LEN, 1, sa_len)\n],\nAC_MSG_RESULT(no)))\n\n\ndnl Check if getopt_long is available.\n\ndnl Solaris has socket(2) in libsocket.\nAC_DEFUN(sii_LIBSOCKET,\n[\n  AC_CHECK_LIB(socket, socket,\n  [\n    AC_DEFINE(HAVE_LIBSOCKET, 1, libsocket)\n    LIBS=\"$LIBS -lsocket\"\n  ])\n])\n\n\ndnl Check for uint[8,16,32]_t\n\nAC_DEFUN(sii_UINT8_T,\nAC_MSG_CHECKING(if type uint8_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[uint8_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_UINT8_T, 1, uint8_t)\n],\nAC_MSG_RESULT(no)))\n\nAC_DEFUN(sii_U_INT8_T,\nAC_MSG_CHECKING(if type u_int8_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[u_int8_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_U_INT8_T, 1, u_int8_t)\n],\nAC_MSG_RESULT(no)))\n\n\n\nAC_DEFUN(sii_UINT16_T,\nAC_MSG_CHECKING(if type uint16_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[uint16_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_UINT16_T, 1, uint16_t)\n],\nAC_MSG_RESULT(no)))\n\nAC_DEFUN(sii_U_INT16_T,\nAC_MSG_CHECKING(if type u_int16_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[u_int32_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_U_INT16_T, 1, u_int16_t)\n],\nAC_MSG_RESULT(no)))\n\n\n\nAC_DEFUN(sii_UINT32_T,\nAC_MSG_CHECKING(if type uint32_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[uint32_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_UINT32_T, 1, uint32_t)\n],\nAC_MSG_RESULT(no)))\n\nAC_DEFUN(sii_U_INT32_T,\nAC_MSG_CHECKING(if type u_int32_t exists)\nAC_TRY_COMPILE(\n[\n  #include <sys/types.h>\n],\n[u_int32_t a;],\n[\n  AC_MSG_RESULT(yes)\n  AC_DEFINE(HAVE_U_INT32_T, 1, u_int32_t)\n],\nAC_MSG_RESULT(no)))\n\n\nsii_LIBSOCKET\nsii_GETHOSTBYNAME\nsii_GETHOSTBYNAME2\nsii_GETADDRINFO\nsii_SA_LEN\nsii_GETOPT_LONG\nsii_UINT8_T\nsii_UINT16_T\nsii_UINT32_T\nsii_U_INT8_T\nsii_U_INT16_T\nsii_U_INT32_T\nAC_OUTPUT(Makefile\t\t\t\\\n\t  doc/Makefile\t\t\t\\\n\t  include/Makefile\t\t\\\n\t  src/Makefile\t\t\t\\\n\t )\n\n"
  },
  {
    "path": "depcomp",
    "content": "#! /bin/sh\n# depcomp - compile a program generating dependencies as side-effects\n\nscriptversion=2012-03-27.16; # UTC\n\n# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,\n# 2011, 2012 Free Software Foundation, Inc.\n\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2, or (at your option)\n# any later version.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n# As a special exception to the GNU General Public License, if you\n# distribute this file as part of a program that contains a\n# configuration script generated by Autoconf, you may include it under\n# the same distribution terms that you use for the rest of that program.\n\n# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.\n\ncase $1 in\n  '')\n     echo \"$0: No command.  Try '$0 --help' for more information.\" 1>&2\n     exit 1;\n     ;;\n  -h | --h*)\n    cat <<\\EOF\nUsage: depcomp [--help] [--version] PROGRAM [ARGS]\n\nRun PROGRAMS ARGS to compile a file, generating dependencies\nas side-effects.\n\nEnvironment variables:\n  depmode     Dependency tracking mode.\n  source      Source file read by 'PROGRAMS ARGS'.\n  object      Object file output by 'PROGRAMS ARGS'.\n  DEPDIR      directory where to store dependencies.\n  depfile     Dependency file to output.\n  tmpdepfile  Temporary file to use when outputting dependencies.\n  libtool     Whether libtool is used (yes/no).\n\nReport bugs to <bug-automake@gnu.org>.\nEOF\n    exit $?\n    ;;\n  -v | --v*)\n    echo \"depcomp $scriptversion\"\n    exit $?\n    ;;\nesac\n\n# A tabulation character.\ntab='\t'\n# A newline character.\nnl='\n'\n\nif test -z \"$depmode\" || test -z \"$source\" || test -z \"$object\"; then\n  echo \"depcomp: Variables source, object and depmode must be set\" 1>&2\n  exit 1\nfi\n\n# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.\ndepfile=${depfile-`echo \"$object\" |\n  sed 's|[^\\\\/]*$|'${DEPDIR-.deps}'/&|;s|\\.\\([^.]*\\)$|.P\\1|;s|Pobj$|Po|'`}\ntmpdepfile=${tmpdepfile-`echo \"$depfile\" | sed 's/\\.\\([^.]*\\)$/.T\\1/'`}\n\nrm -f \"$tmpdepfile\"\n\n# Some modes work just like other modes, but use different flags.  We\n# parameterize here, but still list the modes in the big case below,\n# to make depend.m4 easier to write.  Note that we *cannot* use a case\n# here, because this file can only contain one case statement.\nif test \"$depmode\" = hp; then\n  # HP compiler uses -M and no extra arg.\n  gccflag=-M\n  depmode=gcc\nfi\n\nif test \"$depmode\" = dashXmstdout; then\n   # This is just like dashmstdout with a different argument.\n   dashmflag=-xM\n   depmode=dashmstdout\nfi\n\ncygpath_u=\"cygpath -u -f -\"\nif test \"$depmode\" = msvcmsys; then\n   # This is just like msvisualcpp but w/o cygpath translation.\n   # Just convert the backslash-escaped backslashes to single forward\n   # slashes to satisfy depend.m4\n   cygpath_u='sed s,\\\\\\\\,/,g'\n   depmode=msvisualcpp\nfi\n\nif test \"$depmode\" = msvc7msys; then\n   # This is just like msvc7 but w/o cygpath translation.\n   # Just convert the backslash-escaped backslashes to single forward\n   # slashes to satisfy depend.m4\n   cygpath_u='sed s,\\\\\\\\,/,g'\n   depmode=msvc7\nfi\n\nif test \"$depmode\" = xlc; then\n   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.\n   gccflag=-qmakedep=gcc,-MF\n   depmode=gcc\nfi\n\ncase \"$depmode\" in\ngcc3)\n## gcc 3 implements dependency tracking that does exactly what\n## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like\n## it if -MD -MP comes after the -MF stuff.  Hmm.\n## Unfortunately, FreeBSD c89 acceptance of flags depends upon\n## the command line argument order; so add the flags where they\n## appear in depend2.am.  Note that the slowdown incurred here\n## affects only configure: in makefiles, %FASTDEP% shortcuts this.\n  for arg\n  do\n    case $arg in\n    -c) set fnord \"$@\" -MT \"$object\" -MD -MP -MF \"$tmpdepfile\" \"$arg\" ;;\n    *)  set fnord \"$@\" \"$arg\" ;;\n    esac\n    shift # fnord\n    shift # $arg\n  done\n  \"$@\"\n  stat=$?\n  if test $stat -eq 0; then :\n  else\n    rm -f \"$tmpdepfile\"\n    exit $stat\n  fi\n  mv \"$tmpdepfile\" \"$depfile\"\n  ;;\n\ngcc)\n## There are various ways to get dependency output from gcc.  Here's\n## why we pick this rather obscure method:\n## - Don't want to use -MD because we'd like the dependencies to end\n##   up in a subdir.  Having to rename by hand is ugly.\n##   (We might end up doing this anyway to support other compilers.)\n## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like\n##   -MM, not -M (despite what the docs say).\n## - Using -M directly means running the compiler twice (even worse\n##   than renaming).\n  if test -z \"$gccflag\"; then\n    gccflag=-MD,\n  fi\n  \"$@\" -Wp,\"$gccflag$tmpdepfile\"\n  stat=$?\n  if test $stat -eq 0; then :\n  else\n    rm -f \"$tmpdepfile\"\n    exit $stat\n  fi\n  rm -f \"$depfile\"\n  echo \"$object : \\\\\" > \"$depfile\"\n  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\n## The second -e expression handles DOS-style file names with drive letters.\n  sed -e 's/^[^:]*: / /' \\\n      -e 's/^['$alpha']:\\/[^:]*: / /' < \"$tmpdepfile\" >> \"$depfile\"\n## This next piece of magic avoids the \"deleted header file\" problem.\n## The problem is that when a header file which appears in a .P file\n## is deleted, the dependency causes make to die (because there is\n## typically no way to rebuild the header).  We avoid this by adding\n## dummy dependencies for each header file.  Too bad gcc doesn't do\n## this for us directly.\n  tr ' ' \"$nl\" < \"$tmpdepfile\" |\n## Some versions of gcc put a space before the ':'.  On the theory\n## that the space means something, we add a space to the output as\n## well.  hp depmode also adds that space, but also prefixes the VPATH\n## to the object.  Take care to not repeat it in the output.\n## Some versions of the HPUX 10.20 sed can't process this invocation\n## correctly.  Breaking it into two sed invocations is a workaround.\n    sed -e 's/^\\\\$//' -e '/^$/d' -e \"s|.*$object$||\" -e '/:$/d' \\\n      | sed -e 's/$/ :/' >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\nhp)\n  # This case exists only to let depend.m4 do its work.  It works by\n  # looking at the text of this script.  This case will never be run,\n  # since it is checked for above.\n  exit 1\n  ;;\n\nsgi)\n  if test \"$libtool\" = yes; then\n    \"$@\" \"-Wp,-MDupdate,$tmpdepfile\"\n  else\n    \"$@\" -MDupdate \"$tmpdepfile\"\n  fi\n  stat=$?\n  if test $stat -eq 0; then :\n  else\n    rm -f \"$tmpdepfile\"\n    exit $stat\n  fi\n  rm -f \"$depfile\"\n\n  if test -f \"$tmpdepfile\"; then  # yes, the sourcefile depend on other files\n    echo \"$object : \\\\\" > \"$depfile\"\n\n    # Clip off the initial element (the dependent).  Don't try to be\n    # clever and replace this with sed code, as IRIX sed won't handle\n    # lines with more than a fixed number of characters (4096 in\n    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;\n    # the IRIX cc adds comments like '#:fec' to the end of the\n    # dependency line.\n    tr ' ' \"$nl\" < \"$tmpdepfile\" \\\n    | sed -e 's/^.*\\.o://' -e 's/#.*$//' -e '/^$/ d' | \\\n    tr \"$nl\" ' ' >> \"$depfile\"\n    echo >> \"$depfile\"\n\n    # The second pass generates a dummy entry for each header file.\n    tr ' ' \"$nl\" < \"$tmpdepfile\" \\\n   | sed -e 's/^.*\\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \\\n   >> \"$depfile\"\n  else\n    # The sourcefile does not contain any dependencies, so just\n    # store a dummy comment line, to avoid errors with the Makefile\n    # \"include basename.Plo\" scheme.\n    echo \"#dummy\" > \"$depfile\"\n  fi\n  rm -f \"$tmpdepfile\"\n  ;;\n\nxlc)\n  # This case exists only to let depend.m4 do its work.  It works by\n  # looking at the text of this script.  This case will never be run,\n  # since it is checked for above.\n  exit 1\n  ;;\n\naix)\n  # The C for AIX Compiler uses -M and outputs the dependencies\n  # in a .u file.  In older versions, this file always lives in the\n  # current directory.  Also, the AIX compiler puts '$object:' at the\n  # start of each line; $object doesn't have directory information.\n  # Version 6 uses the directory in both cases.\n  dir=`echo \"$object\" | sed -e 's|/[^/]*$|/|'`\n  test \"x$dir\" = \"x$object\" && dir=\n  base=`echo \"$object\" | sed -e 's|^.*/||' -e 's/\\.o$//' -e 's/\\.lo$//'`\n  if test \"$libtool\" = yes; then\n    tmpdepfile1=$dir$base.u\n    tmpdepfile2=$base.u\n    tmpdepfile3=$dir.libs/$base.u\n    \"$@\" -Wc,-M\n  else\n    tmpdepfile1=$dir$base.u\n    tmpdepfile2=$dir$base.u\n    tmpdepfile3=$dir$base.u\n    \"$@\" -M\n  fi\n  stat=$?\n\n  if test $stat -eq 0; then :\n  else\n    rm -f \"$tmpdepfile1\" \"$tmpdepfile2\" \"$tmpdepfile3\"\n    exit $stat\n  fi\n\n  for tmpdepfile in \"$tmpdepfile1\" \"$tmpdepfile2\" \"$tmpdepfile3\"\n  do\n    test -f \"$tmpdepfile\" && break\n  done\n  if test -f \"$tmpdepfile\"; then\n    # Each line is of the form 'foo.o: dependent.h'.\n    # Do two passes, one to just change these to\n    # '$object: dependent.h' and one to simply 'dependent.h:'.\n    sed -e \"s,^.*\\.[a-z]*:,$object:,\" < \"$tmpdepfile\" > \"$depfile\"\n    sed -e 's,^.*\\.[a-z]*:['\"$tab\"' ]*,,' -e 's,$,:,' < \"$tmpdepfile\" >> \"$depfile\"\n  else\n    # The sourcefile does not contain any dependencies, so just\n    # store a dummy comment line, to avoid errors with the Makefile\n    # \"include basename.Plo\" scheme.\n    echo \"#dummy\" > \"$depfile\"\n  fi\n  rm -f \"$tmpdepfile\"\n  ;;\n\nicc)\n  # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.\n  # However on\n  #    $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c\n  # ICC 7.0 will fill foo.d with something like\n  #    foo.o: sub/foo.c\n  #    foo.o: sub/foo.h\n  # which is wrong.  We want\n  #    sub/foo.o: sub/foo.c\n  #    sub/foo.o: sub/foo.h\n  #    sub/foo.c:\n  #    sub/foo.h:\n  # ICC 7.1 will output\n  #    foo.o: sub/foo.c sub/foo.h\n  # and will wrap long lines using '\\':\n  #    foo.o: sub/foo.c ... \\\n  #     sub/foo.h ... \\\n  #     ...\n  # tcc 0.9.26 (FIXME still under development at the moment of writing)\n  # will emit a similar output, but also prepend the continuation lines\n  # with horizontal tabulation characters.\n  \"$@\" -MD -MF \"$tmpdepfile\"\n  stat=$?\n  if test $stat -eq 0; then :\n  else\n    rm -f \"$tmpdepfile\"\n    exit $stat\n  fi\n  rm -f \"$depfile\"\n  # Each line is of the form 'foo.o: dependent.h',\n  # or 'foo.o: dep1.h dep2.h \\', or ' dep3.h dep4.h \\'.\n  # Do two passes, one to just change these to\n  # '$object: dependent.h' and one to simply 'dependent.h:'.\n  sed -e \"s/^[ $tab][ $tab]*/  /\" -e \"s,^[^:]*:,$object :,\" \\\n    < \"$tmpdepfile\" > \"$depfile\"\n  sed '\n    s/[ '\"$tab\"'][ '\"$tab\"']*/ /g\n    s/^ *//\n    s/ *\\\\*$//\n    s/^[^:]*: *//\n    /^$/d\n    /:$/d\n    s/$/ :/\n  ' < \"$tmpdepfile\" >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\nhp2)\n  # The \"hp\" stanza above does not work with aCC (C++) and HP's ia64\n  # compilers, which have integrated preprocessors.  The correct option\n  # to use with these is +Maked; it writes dependencies to a file named\n  # 'foo.d', which lands next to the object file, wherever that\n  # happens to be.\n  # Much of this is similar to the tru64 case; see comments there.\n  dir=`echo \"$object\" | sed -e 's|/[^/]*$|/|'`\n  test \"x$dir\" = \"x$object\" && dir=\n  base=`echo \"$object\" | sed -e 's|^.*/||' -e 's/\\.o$//' -e 's/\\.lo$//'`\n  if test \"$libtool\" = yes; then\n    tmpdepfile1=$dir$base.d\n    tmpdepfile2=$dir.libs/$base.d\n    \"$@\" -Wc,+Maked\n  else\n    tmpdepfile1=$dir$base.d\n    tmpdepfile2=$dir$base.d\n    \"$@\" +Maked\n  fi\n  stat=$?\n  if test $stat -eq 0; then :\n  else\n     rm -f \"$tmpdepfile1\" \"$tmpdepfile2\"\n     exit $stat\n  fi\n\n  for tmpdepfile in \"$tmpdepfile1\" \"$tmpdepfile2\"\n  do\n    test -f \"$tmpdepfile\" && break\n  done\n  if test -f \"$tmpdepfile\"; then\n    sed -e \"s,^.*\\.[a-z]*:,$object:,\" \"$tmpdepfile\" > \"$depfile\"\n    # Add 'dependent.h:' lines.\n    sed -ne '2,${\n\t       s/^ *//\n\t       s/ \\\\*$//\n\t       s/$/:/\n\t       p\n\t     }' \"$tmpdepfile\" >> \"$depfile\"\n  else\n    echo \"#dummy\" > \"$depfile\"\n  fi\n  rm -f \"$tmpdepfile\" \"$tmpdepfile2\"\n  ;;\n\ntru64)\n   # The Tru64 compiler uses -MD to generate dependencies as a side\n   # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.\n   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put\n   # dependencies in 'foo.d' instead, so we check for that too.\n   # Subdirectories are respected.\n   dir=`echo \"$object\" | sed -e 's|/[^/]*$|/|'`\n   test \"x$dir\" = \"x$object\" && dir=\n   base=`echo \"$object\" | sed -e 's|^.*/||' -e 's/\\.o$//' -e 's/\\.lo$//'`\n\n   if test \"$libtool\" = yes; then\n      # With Tru64 cc, shared objects can also be used to make a\n      # static library.  This mechanism is used in libtool 1.4 series to\n      # handle both shared and static libraries in a single compilation.\n      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.\n      #\n      # With libtool 1.5 this exception was removed, and libtool now\n      # generates 2 separate objects for the 2 libraries.  These two\n      # compilations output dependencies in $dir.libs/$base.o.d and\n      # in $dir$base.o.d.  We have to check for both files, because\n      # one of the two compilations can be disabled.  We should prefer\n      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is\n      # automatically cleaned when .libs/ is deleted, while ignoring\n      # the former would cause a distcleancheck panic.\n      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4\n      tmpdepfile2=$dir$base.o.d          # libtool 1.5\n      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5\n      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504\n      \"$@\" -Wc,-MD\n   else\n      tmpdepfile1=$dir$base.o.d\n      tmpdepfile2=$dir$base.d\n      tmpdepfile3=$dir$base.d\n      tmpdepfile4=$dir$base.d\n      \"$@\" -MD\n   fi\n\n   stat=$?\n   if test $stat -eq 0; then :\n   else\n      rm -f \"$tmpdepfile1\" \"$tmpdepfile2\" \"$tmpdepfile3\" \"$tmpdepfile4\"\n      exit $stat\n   fi\n\n   for tmpdepfile in \"$tmpdepfile1\" \"$tmpdepfile2\" \"$tmpdepfile3\" \"$tmpdepfile4\"\n   do\n     test -f \"$tmpdepfile\" && break\n   done\n   if test -f \"$tmpdepfile\"; then\n      sed -e \"s,^.*\\.[a-z]*:,$object:,\" < \"$tmpdepfile\" > \"$depfile\"\n      sed -e 's,^.*\\.[a-z]*:['\"$tab\"' ]*,,' -e 's,$,:,' < \"$tmpdepfile\" >> \"$depfile\"\n   else\n      echo \"#dummy\" > \"$depfile\"\n   fi\n   rm -f \"$tmpdepfile\"\n   ;;\n\nmsvc7)\n  if test \"$libtool\" = yes; then\n    showIncludes=-Wc,-showIncludes\n  else\n    showIncludes=-showIncludes\n  fi\n  \"$@\" $showIncludes > \"$tmpdepfile\"\n  stat=$?\n  grep -v '^Note: including file: ' \"$tmpdepfile\"\n  if test \"$stat\" = 0; then :\n  else\n    rm -f \"$tmpdepfile\"\n    exit $stat\n  fi\n  rm -f \"$depfile\"\n  echo \"$object : \\\\\" > \"$depfile\"\n  # The first sed program below extracts the file names and escapes\n  # backslashes for cygpath.  The second sed program outputs the file\n  # name when reading, but also accumulates all include files in the\n  # hold buffer in order to output them again at the end.  This only\n  # works with sed implementations that can handle large buffers.\n  sed < \"$tmpdepfile\" -n '\n/^Note: including file:  *\\(.*\\)/ {\n  s//\\1/\n  s/\\\\/\\\\\\\\/g\n  p\n}' | $cygpath_u | sort -u | sed -n '\ns/ /\\\\ /g\ns/\\(.*\\)/'\"$tab\"'\\1 \\\\/p\ns/.\\(.*\\) \\\\/\\1:/\nH\n$ {\n  s/.*/'\"$tab\"'/\n  G\n  p\n}' >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\nmsvc7msys)\n  # This case exists only to let depend.m4 do its work.  It works by\n  # looking at the text of this script.  This case will never be run,\n  # since it is checked for above.\n  exit 1\n  ;;\n\n#nosideeffect)\n  # This comment above is used by automake to tell side-effect\n  # dependency tracking mechanisms from slower ones.\n\ndashmstdout)\n  # Important note: in order to support this mode, a compiler *must*\n  # always write the preprocessed file to stdout, regardless of -o.\n  \"$@\" || exit $?\n\n  # Remove the call to Libtool.\n  if test \"$libtool\" = yes; then\n    while test \"X$1\" != 'X--mode=compile'; do\n      shift\n    done\n    shift\n  fi\n\n  # Remove '-o $object'.\n  IFS=\" \"\n  for arg\n  do\n    case $arg in\n    -o)\n      shift\n      ;;\n    $object)\n      shift\n      ;;\n    *)\n      set fnord \"$@\" \"$arg\"\n      shift # fnord\n      shift # $arg\n      ;;\n    esac\n  done\n\n  test -z \"$dashmflag\" && dashmflag=-M\n  # Require at least two characters before searching for ':'\n  # in the target name.  This is to cope with DOS-style filenames:\n  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.\n  \"$@\" $dashmflag |\n    sed 's:^['\"$tab\"' ]*[^:'\"$tab\"' ][^:][^:]*\\:['\"$tab\"' ]*:'\"$object\"'\\: :' > \"$tmpdepfile\"\n  rm -f \"$depfile\"\n  cat < \"$tmpdepfile\" > \"$depfile\"\n  tr ' ' \"$nl\" < \"$tmpdepfile\" | \\\n## Some versions of the HPUX 10.20 sed can't process this invocation\n## correctly.  Breaking it into two sed invocations is a workaround.\n    sed -e 's/^\\\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\ndashXmstdout)\n  # This case only exists to satisfy depend.m4.  It is never actually\n  # run, as this mode is specially recognized in the preamble.\n  exit 1\n  ;;\n\nmakedepend)\n  \"$@\" || exit $?\n  # Remove any Libtool call\n  if test \"$libtool\" = yes; then\n    while test \"X$1\" != 'X--mode=compile'; do\n      shift\n    done\n    shift\n  fi\n  # X makedepend\n  shift\n  cleared=no eat=no\n  for arg\n  do\n    case $cleared in\n    no)\n      set \"\"; shift\n      cleared=yes ;;\n    esac\n    if test $eat = yes; then\n      eat=no\n      continue\n    fi\n    case \"$arg\" in\n    -D*|-I*)\n      set fnord \"$@\" \"$arg\"; shift ;;\n    # Strip any option that makedepend may not understand.  Remove\n    # the object too, otherwise makedepend will parse it as a source file.\n    -arch)\n      eat=yes ;;\n    -*|$object)\n      ;;\n    *)\n      set fnord \"$@\" \"$arg\"; shift ;;\n    esac\n  done\n  obj_suffix=`echo \"$object\" | sed 's/^.*\\././'`\n  touch \"$tmpdepfile\"\n  ${MAKEDEPEND-makedepend} -o\"$obj_suffix\" -f\"$tmpdepfile\" \"$@\"\n  rm -f \"$depfile\"\n  # makedepend may prepend the VPATH from the source file name to the object.\n  # No need to regex-escape $object, excess matching of '.' is harmless.\n  sed \"s|^.*\\($object *:\\)|\\1|\" \"$tmpdepfile\" > \"$depfile\"\n  sed '1,2d' \"$tmpdepfile\" | tr ' ' \"$nl\" | \\\n## Some versions of the HPUX 10.20 sed can't process this invocation\n## correctly.  Breaking it into two sed invocations is a workaround.\n    sed -e 's/^\\\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> \"$depfile\"\n  rm -f \"$tmpdepfile\" \"$tmpdepfile\".bak\n  ;;\n\ncpp)\n  # Important note: in order to support this mode, a compiler *must*\n  # always write the preprocessed file to stdout.\n  \"$@\" || exit $?\n\n  # Remove the call to Libtool.\n  if test \"$libtool\" = yes; then\n    while test \"X$1\" != 'X--mode=compile'; do\n      shift\n    done\n    shift\n  fi\n\n  # Remove '-o $object'.\n  IFS=\" \"\n  for arg\n  do\n    case $arg in\n    -o)\n      shift\n      ;;\n    $object)\n      shift\n      ;;\n    *)\n      set fnord \"$@\" \"$arg\"\n      shift # fnord\n      shift # $arg\n      ;;\n    esac\n  done\n\n  \"$@\" -E |\n    sed -n -e '/^# [0-9][0-9]* \"\\([^\"]*\\)\".*/ s:: \\1 \\\\:p' \\\n       -e '/^#line [0-9][0-9]* \"\\([^\"]*\\)\".*/ s:: \\1 \\\\:p' |\n    sed '$ s: \\\\$::' > \"$tmpdepfile\"\n  rm -f \"$depfile\"\n  echo \"$object : \\\\\" > \"$depfile\"\n  cat < \"$tmpdepfile\" >> \"$depfile\"\n  sed < \"$tmpdepfile\" '/^$/d;s/^ //;s/ \\\\$//;s/$/ :/' >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\nmsvisualcpp)\n  # Important note: in order to support this mode, a compiler *must*\n  # always write the preprocessed file to stdout.\n  \"$@\" || exit $?\n\n  # Remove the call to Libtool.\n  if test \"$libtool\" = yes; then\n    while test \"X$1\" != 'X--mode=compile'; do\n      shift\n    done\n    shift\n  fi\n\n  IFS=\" \"\n  for arg\n  do\n    case \"$arg\" in\n    -o)\n      shift\n      ;;\n    $object)\n      shift\n      ;;\n    \"-Gm\"|\"/Gm\"|\"-Gi\"|\"/Gi\"|\"-ZI\"|\"/ZI\")\n\tset fnord \"$@\"\n\tshift\n\tshift\n\t;;\n    *)\n\tset fnord \"$@\" \"$arg\"\n\tshift\n\tshift\n\t;;\n    esac\n  done\n  \"$@\" -E 2>/dev/null |\n  sed -n '/^#line [0-9][0-9]* \"\\([^\"]*\\)\"/ s::\\1:p' | $cygpath_u | sort -u > \"$tmpdepfile\"\n  rm -f \"$depfile\"\n  echo \"$object : \\\\\" > \"$depfile\"\n  sed < \"$tmpdepfile\" -n -e 's% %\\\\ %g' -e '/^\\(.*\\)$/ s::'\"$tab\"'\\1 \\\\:p' >> \"$depfile\"\n  echo \"$tab\" >> \"$depfile\"\n  sed < \"$tmpdepfile\" -n -e 's% %\\\\ %g' -e '/^\\(.*\\)$/ s::\\1\\::p' >> \"$depfile\"\n  rm -f \"$tmpdepfile\"\n  ;;\n\nmsvcmsys)\n  # This case exists only to let depend.m4 do its work.  It works by\n  # looking at the text of this script.  This case will never be run,\n  # since it is checked for above.\n  exit 1\n  ;;\n\nnone)\n  exec \"$@\"\n  ;;\n\n*)\n  echo \"Unknown depmode $depmode\" 1>&2\n  exit 1\n  ;;\nesac\n\nexit 0\n\n# Local Variables:\n# mode: shell-script\n# sh-indentation: 2\n# eval: (add-hook 'write-file-hooks 'time-stamp)\n# time-stamp-start: \"scriptversion=\"\n# time-stamp-format: \"%:y-%02m-%02d.%02H\"\n# time-stamp-time-zone: \"UTC\"\n# time-stamp-end: \"; # UTC\"\n# End:\n"
  },
  {
    "path": "doc/Makefile.am",
    "content": "man_MANS = sipcalc.1\nEXTRA_DIST = sipcalc.txt sipcalc.1 install.txt\n\n"
  },
  {
    "path": "doc/Makefile.in",
    "content": "# Makefile.in generated by automake 1.11.6 from Makefile.am.\n# @configure_input@\n\n# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,\n# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software\n# Foundation, Inc.\n# This Makefile.in is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY, to the extent permitted by law; without\n# even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n# PARTICULAR PURPOSE.\n\n@SET_MAKE@\nVPATH = @srcdir@\nam__make_dryrun = \\\n  { \\\n    am__dry=no; \\\n    case $$MAKEFLAGS in \\\n      *\\\\[\\ \\\t]*) \\\n        echo 'am--echo: ; @echo \"AM\"  OK' | $(MAKE) -f - 2>/dev/null \\\n          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \\\n      *) \\\n        for am__flg in $$MAKEFLAGS; do \\\n          case $$am__flg in \\\n            *=*|--*) ;; \\\n            *n*) am__dry=yes; break;; \\\n          esac; \\\n        done;; \\\n    esac; \\\n    test $$am__dry = yes; \\\n  }\npkgdatadir = $(datadir)/@PACKAGE@\npkgincludedir = $(includedir)/@PACKAGE@\npkglibdir = $(libdir)/@PACKAGE@\npkglibexecdir = $(libexecdir)/@PACKAGE@\nam__cd = CDPATH=\"$${ZSH_VERSION+.}$(PATH_SEPARATOR)\" && cd\ninstall_sh_DATA = $(install_sh) -c -m 644\ninstall_sh_PROGRAM = $(install_sh) -c\ninstall_sh_SCRIPT = $(install_sh) -c\nINSTALL_HEADER = $(INSTALL_DATA)\ntransform = $(program_transform_name)\nNORMAL_INSTALL = :\nPRE_INSTALL = :\nPOST_INSTALL = :\nNORMAL_UNINSTALL = :\nPRE_UNINSTALL = :\nPOST_UNINSTALL = :\nsubdir = doc\nDIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in\nACLOCAL_M4 = $(top_srcdir)/aclocal.m4\nam__aclocal_m4_deps = $(top_srcdir)/configure.ac\nam__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\\n\t$(ACLOCAL_M4)\nmkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs\nCONFIG_HEADER = $(top_builddir)/config.h\nCONFIG_CLEAN_FILES =\nCONFIG_CLEAN_VPATH_FILES =\nSOURCES =\nDIST_SOURCES =\nam__can_run_installinfo = \\\n  case $$AM_UPDATE_INFO_DIR in \\\n    n|no|NO) false;; \\\n    *) (install-info --version) >/dev/null 2>&1;; \\\n  esac\nam__vpath_adj_setup = srcdirstrip=`echo \"$(srcdir)\" | sed 's|.|.|g'`;\nam__vpath_adj = case $$p in \\\n    $(srcdir)/*) f=`echo \"$$p\" | sed \"s|^$$srcdirstrip/||\"`;; \\\n    *) f=$$p;; \\\n  esac;\nam__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;\nam__install_max = 40\nam__nobase_strip_setup = \\\n  srcdirstrip=`echo \"$(srcdir)\" | sed 's/[].[^$$\\\\*|]/\\\\\\\\&/g'`\nam__nobase_strip = \\\n  for p in $$list; do echo \"$$p\"; done | sed -e \"s|$$srcdirstrip/||\"\nam__nobase_list = $(am__nobase_strip_setup); \\\n  for p in $$list; do echo \"$$p $$p\"; done | \\\n  sed \"s| $$srcdirstrip/| |;\"' / .*\\//!s/ .*/ ./; s,\\( .*\\)/[^/]*$$,\\1,' | \\\n  $(AWK) 'BEGIN { files[\".\"] = \"\" } { files[$$2] = files[$$2] \" \" $$1; \\\n    if (++n[$$2] == $(am__install_max)) \\\n      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = \"\" } } \\\n    END { for (dir in files) print dir, files[dir] }'\nam__base_list = \\\n  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\\n/ /g' | \\\n  sed '$$!N;$$!N;$$!N;$$!N;s/\\n/ /g'\nam__uninstall_files_from_dir = { \\\n  test -z \"$$files\" \\\n    || { test ! -d \"$$dir\" && test ! -f \"$$dir\" && test ! -r \"$$dir\"; } \\\n    || { echo \" ( cd '$$dir' && rm -f\" $$files \")\"; \\\n         $(am__cd) \"$$dir\" && rm -f $$files; }; \\\n  }\nman1dir = $(mandir)/man1\nam__installdirs = \"$(DESTDIR)$(man1dir)\"\nNROFF = nroff\nMANS = $(man_MANS)\nDISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)\nACLOCAL = @ACLOCAL@\nAMTAR = @AMTAR@\nAUTOCONF = @AUTOCONF@\nAUTOHEADER = @AUTOHEADER@\nAUTOMAKE = @AUTOMAKE@\nAWK = @AWK@\nCC = @CC@\nCCDEPMODE = @CCDEPMODE@\nCFLAGS = @CFLAGS@\nCPP = @CPP@\nCPPFLAGS = @CPPFLAGS@\nCYGPATH_W = @CYGPATH_W@\nDEFS = @DEFS@\nDEPDIR = @DEPDIR@\nECHO_C = @ECHO_C@\nECHO_N = @ECHO_N@\nECHO_T = @ECHO_T@\nEGREP = @EGREP@\nEXEEXT = @EXEEXT@\nGREP = @GREP@\nINSTALL = @INSTALL@\nINSTALL_DATA = @INSTALL_DATA@\nINSTALL_PROGRAM = @INSTALL_PROGRAM@\nINSTALL_SCRIPT = @INSTALL_SCRIPT@\nINSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@\nLDFLAGS = @LDFLAGS@\nLIBOBJS = @LIBOBJS@\nLIBS = @LIBS@\nLTLIBOBJS = @LTLIBOBJS@\nMAKEINFO = @MAKEINFO@\nMKDIR_P = @MKDIR_P@\nOBJEXT = @OBJEXT@\nPACKAGE = @PACKAGE@\nPACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@\nPACKAGE_NAME = @PACKAGE_NAME@\nPACKAGE_STRING = @PACKAGE_STRING@\nPACKAGE_TARNAME = @PACKAGE_TARNAME@\nPACKAGE_URL = @PACKAGE_URL@\nPACKAGE_VERSION = @PACKAGE_VERSION@\nPATH_SEPARATOR = @PATH_SEPARATOR@\nSET_MAKE = @SET_MAKE@\nSHELL = @SHELL@\nSTRIP = @STRIP@\nVERSION = @VERSION@\nabs_builddir = @abs_builddir@\nabs_srcdir = @abs_srcdir@\nabs_top_builddir = @abs_top_builddir@\nabs_top_srcdir = @abs_top_srcdir@\nac_ct_CC = @ac_ct_CC@\nam__include = @am__include@\nam__leading_dot = @am__leading_dot@\nam__quote = @am__quote@\nam__tar = @am__tar@\nam__untar = @am__untar@\nbindir = @bindir@\nbuild_alias = @build_alias@\nbuilddir = @builddir@\ndatadir = @datadir@\ndatarootdir = @datarootdir@\ndocdir = @docdir@\ndvidir = @dvidir@\nexec_prefix = @exec_prefix@\nhost_alias = @host_alias@\nhtmldir = @htmldir@\nincludedir = @includedir@\ninfodir = @infodir@\ninstall_sh = @install_sh@\nlibdir = @libdir@\nlibexecdir = @libexecdir@\nlocaledir = @localedir@\nlocalstatedir = @localstatedir@\nmandir = @mandir@\nmkdir_p = @mkdir_p@\noldincludedir = @oldincludedir@\npdfdir = @pdfdir@\nprefix = @prefix@\nprogram_transform_name = @program_transform_name@\npsdir = @psdir@\nsbindir = @sbindir@\nsharedstatedir = @sharedstatedir@\nsrcdir = @srcdir@\nsysconfdir = @sysconfdir@\ntarget_alias = @target_alias@\ntop_build_prefix = @top_build_prefix@\ntop_builddir = @top_builddir@\ntop_srcdir = @top_srcdir@\nman_MANS = sipcalc.1\nEXTRA_DIST = sipcalc.txt sipcalc.1 install.txt\nall: all-am\n\n.SUFFIXES:\n$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)\n\t@for dep in $?; do \\\n\t  case '$(am__configure_deps)' in \\\n\t    *$$dep*) \\\n\t      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \\\n\t        && { if test -f $@; then exit 0; else break; fi; }; \\\n\t      exit 1;; \\\n\t  esac; \\\n\tdone; \\\n\techo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \\\n\t$(am__cd) $(top_srcdir) && \\\n\t  $(AUTOMAKE) --gnu doc/Makefile\n.PRECIOUS: Makefile\nMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status\n\t@case '$?' in \\\n\t  *config.status*) \\\n\t    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \\\n\t  *) \\\n\t    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \\\n\t    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \\\n\tesac;\n\n$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n\n$(top_srcdir)/configure:  $(am__configure_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(ACLOCAL_M4):  $(am__aclocal_m4_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(am__aclocal_m4_deps):\ninstall-man1: $(man_MANS)\n\t@$(NORMAL_INSTALL)\n\t@list1=''; \\\n\tlist2='$(man_MANS)'; \\\n\ttest -n \"$(man1dir)\" \\\n\t  && test -n \"`echo $$list1$$list2`\" \\\n\t  || exit 0; \\\n\techo \" $(MKDIR_P) '$(DESTDIR)$(man1dir)'\"; \\\n\t$(MKDIR_P) \"$(DESTDIR)$(man1dir)\" || exit 1; \\\n\t{ for i in $$list1; do echo \"$$i\"; done;  \\\n\tif test -n \"$$list2\"; then \\\n\t  for i in $$list2; do echo \"$$i\"; done \\\n\t    | sed -n '/\\.1[a-z]*$$/p'; \\\n\tfi; \\\n\t} | while read p; do \\\n\t  if test -f $$p; then d=; else d=\"$(srcdir)/\"; fi; \\\n\t  echo \"$$d$$p\"; echo \"$$p\"; \\\n\tdone | \\\n\tsed -e 'n;s,.*/,,;p;h;s,.*\\.,,;s,^[^1][0-9a-z]*$$,1,;x' \\\n\t      -e 's,\\.[0-9a-z]*$$,,;$(transform);G;s,\\n,.,' | \\\n\tsed 'N;N;s,\\n, ,g' | { \\\n\tlist=; while read file base inst; do \\\n\t  if test \"$$base\" = \"$$inst\"; then list=\"$$list $$file\"; else \\\n\t    echo \" $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'\"; \\\n\t    $(INSTALL_DATA) \"$$file\" \"$(DESTDIR)$(man1dir)/$$inst\" || exit $$?; \\\n\t  fi; \\\n\tdone; \\\n\tfor i in $$list; do echo \"$$i\"; done | $(am__base_list) | \\\n\twhile read files; do \\\n\t  test -z \"$$files\" || { \\\n\t    echo \" $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'\"; \\\n\t    $(INSTALL_DATA) $$files \"$(DESTDIR)$(man1dir)\" || exit $$?; }; \\\n\tdone; }\n\nuninstall-man1:\n\t@$(NORMAL_UNINSTALL)\n\t@list=''; test -n \"$(man1dir)\" || exit 0; \\\n\tfiles=`{ for i in $$list; do echo \"$$i\"; done; \\\n\tl2='$(man_MANS)'; for i in $$l2; do echo \"$$i\"; done | \\\n\t  sed -n '/\\.1[a-z]*$$/p'; \\\n\t} | sed -e 's,.*/,,;h;s,.*\\.,,;s,^[^1][0-9a-z]*$$,1,;x' \\\n\t      -e 's,\\.[0-9a-z]*$$,,;$(transform);G;s,\\n,.,'`; \\\n\tdir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)\ntags: TAGS\nTAGS:\n\nctags: CTAGS\nCTAGS:\n\n\ndistdir: $(DISTFILES)\n\t@list='$(MANS)'; if test -n \"$$list\"; then \\\n\t  list=`for p in $$list; do \\\n\t    if test -f $$p; then d=; else d=\"$(srcdir)/\"; fi; \\\n\t    if test -f \"$$d$$p\"; then echo \"$$d$$p\"; else :; fi; done`; \\\n\t  if test -n \"$$list\" && \\\n\t    grep 'ab help2man is required to generate this page' $$list >/dev/null; then \\\n\t    echo \"error: found man pages containing the \\`missing help2man' replacement text:\" >&2; \\\n\t    grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/         /' >&2; \\\n\t    echo \"       to fix them, install help2man, remove and regenerate the man pages;\" >&2; \\\n\t    echo \"       typically \\`make maintainer-clean' will remove them\" >&2; \\\n\t    exit 1; \\\n\t  else :; fi; \\\n\telse :; fi\n\t@srcdirstrip=`echo \"$(srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\ttopsrcdirstrip=`echo \"$(top_srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\tlist='$(DISTFILES)'; \\\n\t  dist_files=`for file in $$list; do echo $$file; done | \\\n\t  sed -e \"s|^$$srcdirstrip/||;t\" \\\n\t      -e \"s|^$$topsrcdirstrip/|$(top_builddir)/|;t\"`; \\\n\tcase $$dist_files in \\\n\t  */*) $(MKDIR_P) `echo \"$$dist_files\" | \\\n\t\t\t   sed '/\\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \\\n\t\t\t   sort -u` ;; \\\n\tesac; \\\n\tfor file in $$dist_files; do \\\n\t  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \\\n\t  if test -d $$d/$$file; then \\\n\t    dir=`echo \"/$$file\" | sed -e 's,/[^/]*$$,,'`; \\\n\t    if test -d \"$(distdir)/$$file\"; then \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \\\n\t      cp -fpR $(srcdir)/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    cp -fpR $$d/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t  else \\\n\t    test -f \"$(distdir)/$$file\" \\\n\t    || cp -p $$d/$$file \"$(distdir)/$$file\" \\\n\t    || exit 1; \\\n\t  fi; \\\n\tdone\ncheck-am: all-am\ncheck: check-am\nall-am: Makefile $(MANS)\ninstalldirs:\n\tfor dir in \"$(DESTDIR)$(man1dir)\"; do \\\n\t  test -z \"$$dir\" || $(MKDIR_P) \"$$dir\"; \\\n\tdone\ninstall: install-am\ninstall-exec: install-exec-am\ninstall-data: install-data-am\nuninstall: uninstall-am\n\ninstall-am: all-am\n\t@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am\n\ninstallcheck: installcheck-am\ninstall-strip:\n\tif test -z '$(STRIP)'; then \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t      install; \\\n\telse \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t    \"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'\" install; \\\n\tfi\nmostlyclean-generic:\n\nclean-generic:\n\ndistclean-generic:\n\t-test -z \"$(CONFIG_CLEAN_FILES)\" || rm -f $(CONFIG_CLEAN_FILES)\n\t-test . = \"$(srcdir)\" || test -z \"$(CONFIG_CLEAN_VPATH_FILES)\" || rm -f $(CONFIG_CLEAN_VPATH_FILES)\n\nmaintainer-clean-generic:\n\t@echo \"This command is intended for maintainers to use\"\n\t@echo \"it deletes files that may require special tools to rebuild.\"\nclean: clean-am\n\nclean-am: clean-generic mostlyclean-am\n\ndistclean: distclean-am\n\t-rm -f Makefile\ndistclean-am: clean-am distclean-generic\n\ndvi: dvi-am\n\ndvi-am:\n\nhtml: html-am\n\nhtml-am:\n\ninfo: info-am\n\ninfo-am:\n\ninstall-data-am: install-man\n\ninstall-dvi: install-dvi-am\n\ninstall-dvi-am:\n\ninstall-exec-am:\n\ninstall-html: install-html-am\n\ninstall-html-am:\n\ninstall-info: install-info-am\n\ninstall-info-am:\n\ninstall-man: install-man1\n\ninstall-pdf: install-pdf-am\n\ninstall-pdf-am:\n\ninstall-ps: install-ps-am\n\ninstall-ps-am:\n\ninstallcheck-am:\n\nmaintainer-clean: maintainer-clean-am\n\t-rm -f Makefile\nmaintainer-clean-am: distclean-am maintainer-clean-generic\n\nmostlyclean: mostlyclean-am\n\nmostlyclean-am: mostlyclean-generic\n\npdf: pdf-am\n\npdf-am:\n\nps: ps-am\n\nps-am:\n\nuninstall-am: uninstall-man\n\nuninstall-man: uninstall-man1\n\n.MAKE: install-am install-strip\n\n.PHONY: all all-am check check-am clean clean-generic distclean \\\n\tdistclean-generic distdir dvi dvi-am html html-am info info-am \\\n\tinstall install-am install-data install-data-am install-dvi \\\n\tinstall-dvi-am install-exec install-exec-am install-html \\\n\tinstall-html-am install-info install-info-am install-man \\\n\tinstall-man1 install-pdf install-pdf-am install-ps \\\n\tinstall-ps-am install-strip installcheck installcheck-am \\\n\tinstalldirs maintainer-clean maintainer-clean-generic \\\n\tmostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \\\n\tuninstall-am uninstall-man uninstall-man1\n\n\n# Tell versions [3.59,3.63) of GNU make to not export all variables.\n# Otherwise a system limit (for SysV at least) may be exceeded.\n.NOEXPORT:\n"
  },
  {
    "path": "doc/install.txt",
    "content": "Building.\n\nBuilding sipcalc is as simple as:\n./configure\nmake\nmake install\n\n"
  },
  {
    "path": "doc/sipcalc.1",
    "content": ".\\\" To process this file use: groff -man -Tascii sipcalc.1\n.TH SIPCALC 1 \"19 January 2002\"\n.SH NAME\nsipcalc \\- IP subnet calculator\n.SH SYNOPSIS\n.B sipcalc\n[ \n.B -abcdehiInrsStuvx46\n] <[ADDRESS] [INTERFACE] ... | [\n.B -\n]>\n.SH DESCRIPTION\n.B Sipcalc\nis an ip subnet calculator consisting of two parts.\nA plain text based console version, and web (cgi) based counterpart.\nThis manpage only addresses the console based version.\nSipcalc, in its simplest form takes an ip-address and a subnet mask\non the commandline and outputs information about the subnet.\nSipcalc has support for both IPv4 and IPv6 addresses.\n\n.B Sipcalc\ncan take input in three forms, an ip-address/netmask, an interface or\nvia stdin using the special character -.\n\n.IP Address-IPv4\nAddress must be given in the \"standard\" dotted quad format, ie.:\nxxx.xxx.xxx.xxx with an optional netmask that can be given in\nthree different ways:\n - CIDR, ex. /n where n >= 0 <= 32.\n - Dotted quad, ex. xxx.xxx.xxx.xxx.\n - A hex value, ex 0xnnnnnnnn or nnnnnnnn.\n\n.IP Address-IPv6\nAddresses may be given in any of the forms defined in RFC2373, the netmask\n(prefix) must be given in CIDR notation.\nValid values for the netmask range from n >= 0 <= 128, default value if\nnetmask is omitted is 128.\n\n.IP Interface\nInstead of taking address information from the commandline sipcalc\ncan  obtain relevant information by looking at a specified interface\non the system. Sipcalc then uses this information to calculate output\nvalues. This option is currently only available for IPv4 addresses,\nwork is being done to support IPv6 here also.\n\n.IP -\nFurther arguments will be read from stdin, this can be useful for example\nfor\n.BR cat (1)\ning a list of addresses stored in a file to sipcalc.\nEach line sent to sipcalc should contain one address/netmask or interface.\n\n.PP\nAny number/combination of Address and Interface arguments can exist on\nthe commandline, however, the special character \n.B -\nmust be the first argument or it will be parsed as an interface.\nAll options following the - character will be discarded.\n\nFeatures (IPv4) -\n.IP *\nMultiple address and netmask input formats.\n.IP *\nRetrieving of address information from interfaces.\n.IP *\nClassfull and CIDR output.\n.IP *\nMultiple address and netmask output formats (dotted quad, hex, number of bits).\n.IP *\nOutput of broadcast address, network class, Cisco wildcard,\nhosts/range, network range.\n.IP *\nOutput of multiple types of bitmaps.\n.IP *\nOutput of a user-defined number of extra networks.\n.IP *\nMultiple networks input from commandline.\n.IP *\nDNS resolutions of hostnames.\n.IP *\nParsing of a newline separated list of networks from standard input (STDIN).\n.IP *\nThe ability to \"split\" a network based on a smaller netmask, also with\nrecursive runs on the generated subnets.\n\n.PP\nFeatures (IPv6) -\n.IP *\nCompressed and expanded input addresses.\n.IP *\nCompressed and expanded output.\n.IP *\nStandard IPv6 network output.\n.IP *\nv4 in v6 output.\n.IP *\nReverse DNS address generation.\n.IP *\nDNS resolutions of hostnames.\n.IP *\nThe ability to \"split\" a network based on a smaller netmask, also with\nrecursive runs on the generated subnets.\n\n.PP\nOutput.\n\nSipcalc output is divided into sections and subsections. Each section starts\nwith the string \"-[type : INPUT] - n\" where type can be one of int-ipv4,\nipv6, ipv4. INPUT is one input option from the commandline and n is the number\nof the section that this input option has produced currently displayed.\nCurrently the only input option that produces multiple output sections is an\ninterface with multiple addresses. A subsection starts with the string\n\"[IDENTIFIER]\", where IDENTIFIER is an identifier for the subsection type.\nThe subsection types are based on the used commandline options.\nSections always end with the single character '-' alone on a line.\nWorth mentioning is also that sections can include not only subsections, but\nalso other sections, this currently only happen when the -u and -s/-S options\nare used.\nWarnings/errors etc. can also be displayed in the form -[type : message].\n\nDescription of common output:\n\n[IPv4]\n.IP \"Host address\"\nThe given host address.\n.IP \"Network address\"\nThe first address in a given range, unusable for\nhosts under normal conditions.\n.IP \"Network mask\"\nThe network mask (netmask) used to specify the size\nof a given subnet, usually represented in three different formats:\ndotted quad (xxx.xxx.xxx.xxx),\nhex (0xnnnnnnnn),\nand bits (/n where n >= 0 <= 32)\n.IP \"Broadcast address\"\nThe broadcast address of a given subnet, usually\nthe last address in a range.\n.IP \"Cisco wildcard\"\nThe inverted value of the netmask (netmask ^ 0xffffffff).\nThis value is commonly used in for example access-lists on routers.\n.IP \"Addresses in network\"\nThe number of addresses in the given subnet.\n.IP \"Network range\"\nThe full subnet range.\n.IP \"Usable range\"\nThe range in the given subnet that is commonly used for normal hosts.\n\n.PP\n[IPv6]\n.IP \"Expanded Address\"\nThe full expanded IPv6 address.\n.IP \"Compressed address\"\nThe IPv6 address compressed in the most efficient way possible.\n.IP \"Subnet prefix\"\nThe prefix of the address (in relation to the netmask), the suffix of the\naddress is zeroed out.\n.IP \"Address ID\"\nThe suffix of the address (in relation to the netmask), the prefix of the\naddress is zeroed out.\n.IP \"Prefix address\"\nThe IPv6 equivalent of the IPv4 netmask.\n.IP \"Prefix length\"\nNumber of bits set in the netmask.\n.IP \"Address type\"\nThe address type as defined in RFC2373.\n.IP \"Comment\"\nSome addresses will have comments from the author.\n.IP \"Network range\"\nThe start and end addresses of the subnet.\n.IP \"Expanded v4inv6 address\"\nThe full expanded IPv6 address in v4inv6 format.\n.IP \"Compr. v4inv6 address\"\nThe compressed IPv6 address in v4inv6 format.\n.IP \"Reverse DNS\"\nThe address in IPv6 reverse DNS form.\n.PP\n.SH OPTIONS\n\n.IP \"-a, --all\"\nGive all possible information about an address or interface, this is\nequivalent to giving the flags -b -c -i -n 0 for IPv4 and\n-e -r -t for IPv6.\n\n.IP \"-b, --cidr-bitmap (IPv4)\"\nDisplay CIDR based bitmaps.\n\n.IP \"-c, --classfull-addr (IPv4)\"\nDisplay classfull address information.\n\n.IP \"-d, --resolve\"\nEnable name resolution.\n\n.IP \"-e, --v4inv6 (IPv6)\"\nDisplay v4inv6 address information.\n\n.IP \"-h, --help\"\nDisplay the commandline help.\n\n.IP \"-i, --cidr-addr (default IPv4)\"\nDisplay CIDR address information.\n\n.IP \"-I, --addr-int=INT\"\nExplicitly add an interface.\nThis can be used to circumvent the sipcalc \"smart parsing\" of\naddresses/interfaces on the commandline. This can be useful if you for example\nfor some reason have an interface with the same name as an actual\naddress, eg. 127.0.0.1 or ::1 etc.\nSee also: -4 -6.\n\n.IP \"-n, --subnets=NUM\"\nDisplay NUM extra subnets (starting from the current subnet). Will display\nall subnets in the current /24 if NUM is 0.\n\n.IP \"-r, --v6rev (IPv6)\nDisplay IPv6 reverse DNS information.\n\n.IP \"-s, --v4split=MASK (IPv4)\"\nSplit the current network into subnets of MASK size. MASK can be given in\ndotted quad, hex or CIDR form.\n\n.IP \"-S, --v6split=MASK (IPv6)\"\nSplit the current network into subnets of MASK size. MASK must be given in\nCIDR form, either with or with the '/' character.\n\n.IP \"-t, --v6-standard (default IPv6)\"\nDisplay IPv6 address information.\n\n.IP \"-u, --split-verbose\"\nThis will put network splitting into verbose mode.\nThis means that all the subnets generated when splitting a network will\nbe passed back to sipcalc for explicit parsing giving the same output\nas if the address had been given on the commandline.\nAll options passed to sipcalc on the commandline will also be inherited\nwhen the subnet is passed back to sipcalc for parsing, with one exception,\nthe -s/-S flag, we don't want an endless loop.\nSending only the -s/-S and -u flags to sipcalc will give the default output\n(-i for IPv4 and -t for IPv6).\n\n.IP \"-v, --version\"\nDisplay version information.\n\n.IP \"-w, --wildcard\"\nTakes a cisco wildcard (inverse mask) and display the corresponding regular\nnetmask and netmask bit count.\n\n.IP \"-x, --classful-bitmap (IPv6)\"\nDisplay a classfull bitmap.\n\n.IP \"-4, --addr-ipv4=ADDR\"\nExplicitly add an IPv4 address.\nSee also: -I -6.\n\n.IP \"-6, --addr-ipv6=ADDR\"\nExplicitly add an IPv6 address.\nSee also: -I -4.\n.PP\n.SH BUGS\nProbably lots.\nKnown missing features include getting IPv6 addresses from interfaces and\nimplementing the -n option for IPv6 addresses.\nPlease send any bugs, feature requests, patches, comments etc. to\nsimon@routemeister.net.\n\n.SH URL\nSipcalc can be downloaded from \nhttp://www.routemeister.net/\n\n.SH AUTHOR\nSimon Ekstrand <simon@routemeister.net>.\n\n"
  },
  {
    "path": "doc/sipcalc.txt",
    "content": "Syntax: sipcalc [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>\n\nDescription of common output:\n\nIPv4 -\n  Host address\t\t- The given host address.\n  Network address\t- The first address in a given range, unusable for\n\t\t\t  hosts under normal conditions.\n  Network mask\t\t- The network mask (netmask) used to specify the size\n\t\t\t  of a given subnet, usually represented in three\n\t\t\t  different formats:\n\t\t\t  dotted quad (xxx.xxx.xxx.xxx)\n\t\t\t  hex (0xnnnnnnnn)\n\t\t\t  bits (/n where n >= 0 <= 32)\n  Broadcast address\t- The broadcast address of a given subnet, usually\n\t\t\t  the last address in a range.\n  Cisco wildcard\t- The inverted value of the netmask\n\t\t\t  (netmask ^ 0xffffffff).\n\t\t\t  This value is commonly used in for example access-\n\t\t\t  lists on routers.\n  Addresses in network\t- The number of addresses in the given subnet.\n  Network range\t\t- The full subnet range.\n  Usable range\t\t- The range in the given subnet that is commonly used\n\t\t\t  for normal hosts.\n\nIPv6 -\n  Expanded Address\t- The full expanded IPv6 address.\n  Compressed address\t- The IPv6 address compressed in the most efficient way\n\t\t\t  possible.\n  Subnet prefix\t\t- The prefix of the address (in relation to the\n\t\t\t  netmask), the suffix of the address is zeroed out.\n  Address ID\t\t- The suffix of the address (in relation to the\n\t\t\t  netmask), the prefix of the address is zeroed out.\n  Prefix address\t- The IPv6 equivalent of the IPv4 netmask.\n  Prefix length\t\t- Number of bits set in the netmask.\n  Address type\t\t- The address type as defined in RFC2373.\n  Comment\t\t- Some addresses will have comments from the author :)\n  Network range\t\t- The start and end addresses of the subnet.\n  Expanded v4inv6 address - The full expanded IPv6 address in v4inv6 format.\n  Compr. v4inv6 address\t- The compressed IPv6 address in v4inv6 format.\n  Reverse DNS\t\t- The address in IPv6 reverse DNS form.\n\n\nCommandline options:\n[OPTIONS]...\n\n* -a, --all\n  Give all possible information about an adress or interface, this is\n  equivalent to giving the flags -b -c -i -n 0 for IPv4 and\n  -e -r -t for IPv6.\n\n* -b, --cidr-bitmap (IPv4)\n  Show a CIDR based bitmap of the following output:\n  - host address\n  - network address\n  - network mask\n  - broadcast address\n  - cisco wildcard\n  - network range\n  - usable range\n\n* -c, --classfull-addr (IPv4)\n  Show classfull address information for the following values:\n  - host address\n  - host address (decimal)\n  - host address (hex)\n  - network address\n  - network class\n  - network mask\n  - network mask (hex)\n  - broadcast address\n\n* -d, --resolv\n  Enable DNS resolution of commandline hostnames, both IPv4 and IPv6 support\n  if present.\n\n* -e, --v4inv6 (IPv6)\n  v4inv6 output for the following values:\n  - Expanded v4inv6 address\n  - Compr. v4inv6 address\n  - Comment\n\n* -h, --help\n  Display the commandline help.\n\n* -i, --cidr-addr (the default commandline option for IPv4) (IPv4)\n  Show CIDR address information for the following values:\n  - host address\n  - host address (decimal)\n  - host address (hex)\n  - network address\n  - network mask\n  - network mask (bits)\n  - network mask (hex)\n  - Broadcast address\n  - cisco wildcard\n  - addresses in network\n  - network range\n  - usable range\n\n* -I, --addr-int=INT\n  Explicitly add an interface.\n  This can be used to circumvent the sipcalc \"smart parsing\" of addresses/\n  interfaces on the commandline. This can be useful if you for example\n  for some reason have an interface with the same name as an actual\n  address, eg. 127.0.0.1 or ::1 etc.\n  See also: -4 -6.\n\n* -n, --subnets=NUM\n  Display NUM extra subnets (starting from the current subnet). Will display\n  all subnets in the current /24 if NUM is 0.\n\n* -r, --v6rev (IPv6)\n  IPv6 reverse DNS output for the following values:\n  - Reverse DNS\n\n* -s, --v4split=MASK (IPv4)\n  Split the current network into subnets of MASK size. MASK can be given in\n  dotted quad, hex or CIDR form, either with or without the '/' character.\n\n* -S, --v6split=MASK (IPv6)\n  Split the current network into subnets of MASK size. MASK must be given in\n  CIDR form, either with or with the '/' character.\n\n* -t, --v6-standard (IPv6)\n  Default IPv6 output containing the following values:\n  - Expanded Address\n  - Compressed address\n  - Subnet prefix (masked)\n  - Address ID (masked)\n  - Prefix address\n  - Prefix length\n  - Address type\n  - Network range\n\n* -u --split-verbose\n  This will put network splitting into verbose mode.\n  This means that all the subnets generated when splitting a network will\n  be passed back to sipcalc for explicit parsing giving the same output\n  as if the address had been given on the commandline.\n  All options passed to sipcalc on the commandline will also be inherited\n  when the subnet is passed back to sipcalc for parsing, with one exception,\n  the -s/-S flag, we don't want an endless loop.\n  Sending only the -s/-S and -u flags to sipcalc will give the default output\n  (-i for ipv4 and -t for ipv6).\n\n* -v, --version\n  Display sipcalc version.\n\n* -w, --wildcard\n  Takes a cisco wildcard (inverse mask) and display the corresponding regular\n  netmask and netmask bit count.\n\n* -x, --classful-bitmap (IPv4)\n  Show a classfull bitmap of the following output:\n  - network address\n  - network mask\n\n* -4, --addr-ipv4=ADDR\n  Explicitly add an IPv4 address.\n  See also: -I -6.\n\n* -6, --addr-ipv6=ADDR\n  Explicitly add an IPv6 address.\n  See also: -I -4.\n\n\n<[ADDRESS]... [INTERFACE]... | [-]>\n\n* address\nIPv4 -\n  Address must be given in the \"standard\" dotted quad format, ie.:\n  xxx.xxx.xxx.xxx and prepended with a netmask the can be given in\n  three different ways:\n  - CIDR, ex. /n where n >= 0 <= 32.\n  - Dotted quad, ex. xxx.xxx.xxx.xxx.\n  - A hex value, ex 0xnnnnnnnn or nnnnnnnn.\n\nIPv6 -\n  Addresses may be given in any of the forms defined in RFC2373, the netmask\n  must be given in CIDR notion.\n  Valid values for the netmask range from n >= 0 <= 128, default value if\n  netmask is omitted is 128.\n  Examples:\n  - 1:2:3:4:5:6:7:8\n  - 1:2:3:4:5:6:7:8/64\n  - ::1/64\n  - ::1.2.3.4/64\n  etc.\n\n* interface\n  Instead of taking address information from the commandline sipcalc\n  can  obtain relevant information by looking at a specified interface\n  on the system. Sipcalc then uses this information to calculate output\n  values.\n  This option currently only works for IPv4 addresses, work is being done\n  to support IPv6 here also.\n\n* -\n  Further arguments will be read from stdin, this can be useful for example\n  for cat(1)'ing a list of addresses stored in a file to sipcalc.\n\n\nRelated documents:\n\nRFC 1878: Variable Length Subnet Table For IPv4.\nRFC 1517: Applicability Statement for the Implementation of CIDR.\nRFC 1518: An Architecture for IP Address Allocation with CIDR.\nRFC 1519: CIDR: An Address Assignment and Aggregation Strategy.\nRFC 1520: Exchanging Routing Information Across Provider Boundaries\n\t  in the CIDR Environment.\nRFC 2373: IP Version 6 Addressing Architecture.\nRFC 2374: An IPv6 Aggregatable Global Unicast Address Format.\n\n"
  },
  {
    "path": "include/Makefile.am",
    "content": "EXTRA_DIST = sub-o.h sub.h\n"
  },
  {
    "path": "include/Makefile.in",
    "content": "# Makefile.in generated by automake 1.11.6 from Makefile.am.\n# @configure_input@\n\n# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,\n# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software\n# Foundation, Inc.\n# This Makefile.in is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY, to the extent permitted by law; without\n# even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n# PARTICULAR PURPOSE.\n\n@SET_MAKE@\nVPATH = @srcdir@\nam__make_dryrun = \\\n  { \\\n    am__dry=no; \\\n    case $$MAKEFLAGS in \\\n      *\\\\[\\ \\\t]*) \\\n        echo 'am--echo: ; @echo \"AM\"  OK' | $(MAKE) -f - 2>/dev/null \\\n          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \\\n      *) \\\n        for am__flg in $$MAKEFLAGS; do \\\n          case $$am__flg in \\\n            *=*|--*) ;; \\\n            *n*) am__dry=yes; break;; \\\n          esac; \\\n        done;; \\\n    esac; \\\n    test $$am__dry = yes; \\\n  }\npkgdatadir = $(datadir)/@PACKAGE@\npkgincludedir = $(includedir)/@PACKAGE@\npkglibdir = $(libdir)/@PACKAGE@\npkglibexecdir = $(libexecdir)/@PACKAGE@\nam__cd = CDPATH=\"$${ZSH_VERSION+.}$(PATH_SEPARATOR)\" && cd\ninstall_sh_DATA = $(install_sh) -c -m 644\ninstall_sh_PROGRAM = $(install_sh) -c\ninstall_sh_SCRIPT = $(install_sh) -c\nINSTALL_HEADER = $(INSTALL_DATA)\ntransform = $(program_transform_name)\nNORMAL_INSTALL = :\nPRE_INSTALL = :\nPOST_INSTALL = :\nNORMAL_UNINSTALL = :\nPRE_UNINSTALL = :\nPOST_UNINSTALL = :\nsubdir = include\nDIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in\nACLOCAL_M4 = $(top_srcdir)/aclocal.m4\nam__aclocal_m4_deps = $(top_srcdir)/configure.ac\nam__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\\n\t$(ACLOCAL_M4)\nmkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs\nCONFIG_HEADER = $(top_builddir)/config.h\nCONFIG_CLEAN_FILES =\nCONFIG_CLEAN_VPATH_FILES =\nSOURCES =\nDIST_SOURCES =\nam__can_run_installinfo = \\\n  case $$AM_UPDATE_INFO_DIR in \\\n    n|no|NO) false;; \\\n    *) (install-info --version) >/dev/null 2>&1;; \\\n  esac\nDISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)\nACLOCAL = @ACLOCAL@\nAMTAR = @AMTAR@\nAUTOCONF = @AUTOCONF@\nAUTOHEADER = @AUTOHEADER@\nAUTOMAKE = @AUTOMAKE@\nAWK = @AWK@\nCC = @CC@\nCCDEPMODE = @CCDEPMODE@\nCFLAGS = @CFLAGS@\nCPP = @CPP@\nCPPFLAGS = @CPPFLAGS@\nCYGPATH_W = @CYGPATH_W@\nDEFS = @DEFS@\nDEPDIR = @DEPDIR@\nECHO_C = @ECHO_C@\nECHO_N = @ECHO_N@\nECHO_T = @ECHO_T@\nEGREP = @EGREP@\nEXEEXT = @EXEEXT@\nGREP = @GREP@\nINSTALL = @INSTALL@\nINSTALL_DATA = @INSTALL_DATA@\nINSTALL_PROGRAM = @INSTALL_PROGRAM@\nINSTALL_SCRIPT = @INSTALL_SCRIPT@\nINSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@\nLDFLAGS = @LDFLAGS@\nLIBOBJS = @LIBOBJS@\nLIBS = @LIBS@\nLTLIBOBJS = @LTLIBOBJS@\nMAKEINFO = @MAKEINFO@\nMKDIR_P = @MKDIR_P@\nOBJEXT = @OBJEXT@\nPACKAGE = @PACKAGE@\nPACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@\nPACKAGE_NAME = @PACKAGE_NAME@\nPACKAGE_STRING = @PACKAGE_STRING@\nPACKAGE_TARNAME = @PACKAGE_TARNAME@\nPACKAGE_URL = @PACKAGE_URL@\nPACKAGE_VERSION = @PACKAGE_VERSION@\nPATH_SEPARATOR = @PATH_SEPARATOR@\nSET_MAKE = @SET_MAKE@\nSHELL = @SHELL@\nSTRIP = @STRIP@\nVERSION = @VERSION@\nabs_builddir = @abs_builddir@\nabs_srcdir = @abs_srcdir@\nabs_top_builddir = @abs_top_builddir@\nabs_top_srcdir = @abs_top_srcdir@\nac_ct_CC = @ac_ct_CC@\nam__include = @am__include@\nam__leading_dot = @am__leading_dot@\nam__quote = @am__quote@\nam__tar = @am__tar@\nam__untar = @am__untar@\nbindir = @bindir@\nbuild_alias = @build_alias@\nbuilddir = @builddir@\ndatadir = @datadir@\ndatarootdir = @datarootdir@\ndocdir = @docdir@\ndvidir = @dvidir@\nexec_prefix = @exec_prefix@\nhost_alias = @host_alias@\nhtmldir = @htmldir@\nincludedir = @includedir@\ninfodir = @infodir@\ninstall_sh = @install_sh@\nlibdir = @libdir@\nlibexecdir = @libexecdir@\nlocaledir = @localedir@\nlocalstatedir = @localstatedir@\nmandir = @mandir@\nmkdir_p = @mkdir_p@\noldincludedir = @oldincludedir@\npdfdir = @pdfdir@\nprefix = @prefix@\nprogram_transform_name = @program_transform_name@\npsdir = @psdir@\nsbindir = @sbindir@\nsharedstatedir = @sharedstatedir@\nsrcdir = @srcdir@\nsysconfdir = @sysconfdir@\ntarget_alias = @target_alias@\ntop_build_prefix = @top_build_prefix@\ntop_builddir = @top_builddir@\ntop_srcdir = @top_srcdir@\nEXTRA_DIST = sub-o.h sub.h\nall: all-am\n\n.SUFFIXES:\n$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)\n\t@for dep in $?; do \\\n\t  case '$(am__configure_deps)' in \\\n\t    *$$dep*) \\\n\t      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \\\n\t        && { if test -f $@; then exit 0; else break; fi; }; \\\n\t      exit 1;; \\\n\t  esac; \\\n\tdone; \\\n\techo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \\\n\t$(am__cd) $(top_srcdir) && \\\n\t  $(AUTOMAKE) --gnu include/Makefile\n.PRECIOUS: Makefile\nMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status\n\t@case '$?' in \\\n\t  *config.status*) \\\n\t    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \\\n\t  *) \\\n\t    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \\\n\t    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \\\n\tesac;\n\n$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n\n$(top_srcdir)/configure:  $(am__configure_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(ACLOCAL_M4):  $(am__aclocal_m4_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(am__aclocal_m4_deps):\ntags: TAGS\nTAGS:\n\nctags: CTAGS\nCTAGS:\n\n\ndistdir: $(DISTFILES)\n\t@srcdirstrip=`echo \"$(srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\ttopsrcdirstrip=`echo \"$(top_srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\tlist='$(DISTFILES)'; \\\n\t  dist_files=`for file in $$list; do echo $$file; done | \\\n\t  sed -e \"s|^$$srcdirstrip/||;t\" \\\n\t      -e \"s|^$$topsrcdirstrip/|$(top_builddir)/|;t\"`; \\\n\tcase $$dist_files in \\\n\t  */*) $(MKDIR_P) `echo \"$$dist_files\" | \\\n\t\t\t   sed '/\\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \\\n\t\t\t   sort -u` ;; \\\n\tesac; \\\n\tfor file in $$dist_files; do \\\n\t  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \\\n\t  if test -d $$d/$$file; then \\\n\t    dir=`echo \"/$$file\" | sed -e 's,/[^/]*$$,,'`; \\\n\t    if test -d \"$(distdir)/$$file\"; then \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \\\n\t      cp -fpR $(srcdir)/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    cp -fpR $$d/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t  else \\\n\t    test -f \"$(distdir)/$$file\" \\\n\t    || cp -p $$d/$$file \"$(distdir)/$$file\" \\\n\t    || exit 1; \\\n\t  fi; \\\n\tdone\ncheck-am: all-am\ncheck: check-am\nall-am: Makefile\ninstalldirs:\ninstall: install-am\ninstall-exec: install-exec-am\ninstall-data: install-data-am\nuninstall: uninstall-am\n\ninstall-am: all-am\n\t@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am\n\ninstallcheck: installcheck-am\ninstall-strip:\n\tif test -z '$(STRIP)'; then \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t      install; \\\n\telse \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t    \"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'\" install; \\\n\tfi\nmostlyclean-generic:\n\nclean-generic:\n\ndistclean-generic:\n\t-test -z \"$(CONFIG_CLEAN_FILES)\" || rm -f $(CONFIG_CLEAN_FILES)\n\t-test . = \"$(srcdir)\" || test -z \"$(CONFIG_CLEAN_VPATH_FILES)\" || rm -f $(CONFIG_CLEAN_VPATH_FILES)\n\nmaintainer-clean-generic:\n\t@echo \"This command is intended for maintainers to use\"\n\t@echo \"it deletes files that may require special tools to rebuild.\"\nclean: clean-am\n\nclean-am: clean-generic mostlyclean-am\n\ndistclean: distclean-am\n\t-rm -f Makefile\ndistclean-am: clean-am distclean-generic\n\ndvi: dvi-am\n\ndvi-am:\n\nhtml: html-am\n\nhtml-am:\n\ninfo: info-am\n\ninfo-am:\n\ninstall-data-am:\n\ninstall-dvi: install-dvi-am\n\ninstall-dvi-am:\n\ninstall-exec-am:\n\ninstall-html: install-html-am\n\ninstall-html-am:\n\ninstall-info: install-info-am\n\ninstall-info-am:\n\ninstall-man:\n\ninstall-pdf: install-pdf-am\n\ninstall-pdf-am:\n\ninstall-ps: install-ps-am\n\ninstall-ps-am:\n\ninstallcheck-am:\n\nmaintainer-clean: maintainer-clean-am\n\t-rm -f Makefile\nmaintainer-clean-am: distclean-am maintainer-clean-generic\n\nmostlyclean: mostlyclean-am\n\nmostlyclean-am: mostlyclean-generic\n\npdf: pdf-am\n\npdf-am:\n\nps: ps-am\n\nps-am:\n\nuninstall-am:\n\n.MAKE: install-am install-strip\n\n.PHONY: all all-am check check-am clean clean-generic distclean \\\n\tdistclean-generic distdir dvi dvi-am html html-am info info-am \\\n\tinstall install-am install-data install-data-am install-dvi \\\n\tinstall-dvi-am install-exec install-exec-am install-html \\\n\tinstall-html-am install-info install-info-am install-man \\\n\tinstall-pdf install-pdf-am install-ps install-ps-am \\\n\tinstall-strip installcheck installcheck-am installdirs \\\n\tmaintainer-clean maintainer-clean-generic mostlyclean \\\n\tmostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am\n\n\n# Tell versions [3.59,3.63) of GNU make to not export all variables.\n# Otherwise a system limit (for SysV at least) may be exceeded.\n.NOEXPORT:\n"
  },
  {
    "path": "include/sub-o.h",
    "content": "/*\n * sipcalc, sub-o.h\n *\n * $Id: sub-o.h,v 1.11 2003/03/19 12:28:15 simius Exp $\n *\n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n */\n\n#ifndef SUB_O_H\n#define SUB_O_H\n\n/*\n * prototypes\n */\nvoid show_c_wildcard_info_v4 (struct if_info *ifi);\nvoid show_split_networks_v4 (struct if_info *ifi, u_int32_t splitmask, int v4args, struct misc_args m_argv4);\nint show_networks_v4 (struct if_info *ifi, int count);\nvoid print_cf_info_v4 (struct if_info *ifi);\nvoid print_cf_bitmap_v4 (struct if_info *ifi);\nvoid print_cidr_info_v4 (struct if_info *ifi);\nvoid print_cidr_bitmap_v4 (struct if_info *ifi);\nvoid print_comp_v6 (struct sip_in6_addr addr);\nvoid print_exp_v4inv6 (struct sip_in6_addr addr);\nvoid print_comp_v4inv6 (struct sip_in6_addr addr);\nvoid print_exp_v6 (struct sip_in6_addr addr);\nvoid print_mixed_v6 (struct sip_in6_addr addr);\nvoid print_rev_v6 (struct if_info *ifi);\nvoid print_v6 (struct if_info *ifi);\nvoid print_v4inv6 (struct if_info *ifi);\nint v6plus (struct sip_in6_addr *a, struct sip_in6_addr *b);\nvoid show_split_networks_v6 (struct if_info *ifi, struct sip_in6_addr splitmask, int v6args, struct misc_args m_argv6);\nvoid print_short_help ();\nvoid print_help ();\nvoid print_version ();\n\n#endif\t\t\t\t/* SUB_O_H */\n"
  },
  {
    "path": "include/sub.h",
    "content": "/*\n * sipcalc, sub.h\n *\n * $Id: sub.h,v 1.31 2003/03/19 12:28:15 simius Exp $\n *\n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n */\n\n#ifndef SUB_H\n#define SUB_H\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n#ifdef HAVE_SYS_TYPES_H\n#include <sys/types.h>\n#endif\n#ifdef HAVE_SYS_BITYPES_H\n#include <sys/bitypes.h>\n#endif\n#include <sys/socket.h>\n#include <net/if.h>\n\n#ifdef PACKAGE\n#define NAME PACKAGE\n#else\n#define NAME \"sipcalc\"\n#endif\n\n#if defined(HAVE_GETHOSTBYNAME_NETDB) && !defined(HAVE_GETHOSTBYNAME)\n#define HAVE_GETHOSTBYNAME\n#endif\n#if defined(HAVE_GETHOSTBYNAME2_NETDB) && !defined(HAVE_GETHOSTBYNAME2)\n#define HAVE_GETHOSTBYNAME\n#endif\n#if defined(HAVE_GETADDRINFO_NETDB) && !defined(HAVE_GETADDRINFO)\n#define HAVE_GETADDRINFO\n#endif\n\n#if !defined(HAVE_U_INT8_T) && defined(HAVE_UINT8_T)\n#define u_int8_t uint8_t\n#endif\n#if defined(HAVE_U_INT8_T) && !defined(HAVE_UINT8_T)\n#define uint8_t u_int8_t\n#endif\n\n#if !defined(HAVE_U_INT16_T) && defined(HAVE_UINT16_T)\n#define u_int16_t uint16_t\n#endif\n#if defined(HAVE_U_INT16_T) && !defined(HAVE_UINT16_T)\n#define uint16_t u_int16_t\n#endif\n\n#if !defined(HAVE_U_INT32_T) && defined(HAVE_UINT32_T)\n#define u_int32_t uint32_t\n#endif\n#if defined(HAVE_U_INT32_T) && !defined(HAVE_UINT32_T)\n#define uint32_t u_int32_t\n#endif\n\n#ifndef PF_UNSPEC\n#define PF_UNSPEC AF_UNSPEC\n#endif\n\n#ifndef PF_INET\n#define PF_INET AF_INET\n#endif\n\n#ifndef PF_INET6\n#define PF_INET6 AF_INET6\n#endif\n\n#define V4ADDR_VAL \"0123456789.\"\n#define V6ADDR_VAL \"0123456789ABCDEFabcdef:\"\n#define NETMASK_VAL \"0123456789\"\n\n#define TERMINATE(x) (x[sizeof(x)-1]='\\0')\n#define safe_strncpy(dest,src) strncpy(dest,src,sizeof(dest)-1+TERMINATE(dest)*0)\n#define safe_strncat(dest,src) strncat(dest,src,sizeof(dest)-1+TERMINATE(dest)*0)\n#define safe_snprintf(dest,whatever...) snprintf(dest,sizeof(dest),## whatever)\n#define safe_bzero(dest) bzero((char *)dest,sizeof(dest))\n\n/*\n * Easier to define this ourselves then to use all the different\n * versions from different platforms.\n */\nstruct sip_in6_addr {\n\tunion {\n\t\tuint8_t u6_addr8[16];\n\t\tuint16_t u6_addr16[8];\n\t\tuint32_t u6_addr32[4];\n\t} sip_in6_u;\n#define sip6_addr\tsip_in6_u.u6_addr8\n#define sip6_addr8\tsip_in6_u.u6_addr8\n#define sip6_addr16\tsip_in6_u.u6_addr16\n#define sip6_addr32\tsip_in6_u.u6_addr32\n};\n\nstruct v4addr {\n\tchar class;\n\tchar class_remark[64];\n\tchar pres_bitmap[36];\n\tint n_nmaskbits;\n\tu_int32_t n_cbroadcast;\n\tu_int32_t n_broadcast;\n\tu_int32_t n_cnaddr;\n\tu_int32_t n_naddr;\n\tu_int32_t n_cnmask;\n\tu_int32_t n_nmask;\n\tu_int32_t n_haddr;\n\tu_int32_t i_broadcast;\n};\n\n/*\n * Broadcast in this structure is sort of missleading, since ipv6 networks\n * don't have broadcast addresses, but it's as good a name as any for the\n * top address of a subnet.\n *\n * Prefix can also be directly translated to a ipv4 network address.\n */\nstruct v6addr {\n\tchar class_remark[64];\n\tchar comment[64];\n\tstruct sip_in6_addr haddr;\n\tint nmaskbits;\n\tstruct sip_in6_addr nmask;\n\tstruct sip_in6_addr prefix;\n\tstruct sip_in6_addr suffix;\n\tstruct sip_in6_addr broadcast;\n\tint type;\n\tint real_v4;\n};\n\nstruct if_info {\n\tchar name[IFNAMSIZ + 1];\n\tchar p_v4addr[19], p_v4nmask[16];\n\tchar p_v6addr[44];\n\tchar errorstr[64];\n\tchar cmdstr[128];\n\tshort flags;\n\tshort type;\n\tstruct v4addr v4ad;\n\tstruct v6addr v6ad;\n\tstruct if_info *next;\n};\n\nstruct misc_args {\n\tint numnets;\n\tu_int32_t splitmask;\n\tstruct sip_in6_addr v6splitmask;\n\tint v6splitnum;\n};\n\nstruct ipv6_split {\n\tchar ipv6addr[40];\n\tchar ipv4addr[16];\n\tchar nmask[4];\n};\n\nstruct argbox {\n\tchar str[128];\n\tint type;\n\tint resolv;\n\tstruct argbox *next;\n};\n\nstruct dnsresp {\n\tchar str[128];\n\tint type;\n\tstruct dnsresp *next;\n};\n\n#define AT_V4 1\n#define AT_V6 2\n#define AT_INT 3\n#define AT_UNKWN 4\n\n#define IFT_V4 1\n#define IFT_V6 2\n#define IFT_INTV4 3\n#define IFT_INTV6 4\n#define IFT_UNKWN 5\n\n/* v4 args */\n#define CF_INFO     0x01\n#define CF_BITMAP   0x02\n#define CIDR_INFO   0x04\n#define CIDR_BITMAP 0x08\n#define NET_INFO    0x10\n#define V4SPLIT     0x20\n#define V4VERBSPLIT 0x40\n#define C_WILDCARD  0x80\n\n/* v6 args */\n#define V6_INFO     0x01\n#define V4INV6      0x02\n#define V6SPLIT     0x04\n#define V6REV       0x08\n#define V6VERBSPLIT 0x10\n\n#define V6TYPE_STANDARD 1\n#define V6TYPE_V4INV6 2\n\n/*\n * prototypes\n */\n/*\n * sub.c\n */\nint out_int (struct if_info *if_cur, struct if_info *ifarg_cur, int v4args,\n\t     struct misc_args m_argv4, int v6args, struct misc_args m_argv6);\nint out_cmdline (struct if_info *ifarg_cur, int v4args,\n\t\t struct misc_args m_argv4, int v6args,\n\t\t struct misc_args m_argv6, int recurse, int index);\nint cleanline (char *sbuf, char *dbuf);\nint get_stdin (char *args[]);\n\n/*\n * sub-func.c\n */\nint count (char *buf, char ch);\nint validate_v4addr (char *addr);\nint validate_netmask (char *in_addr);\nint getsplitnumv4 (char *buf, u_int32_t * splitmask);\nint getsplitnumv6 (char *buf, struct sip_in6_addr *splitmask, int *v6splitnum);\nint quadtonum (char *quad, u_int32_t * num);\nchar *numtoquad (u_int32_t num);\nchar *numtobitmap (u_int32_t num);\nint parse_addr (struct if_info *ifi);\nint get_addrv4 (struct if_info *ifi);\nint get_addrv6 (struct if_info *ifi);\nint split_ipv6addr (char *addr, struct ipv6_split *spstr);\nint validate_s_v6addr (char *addr, int type);\nint getcolon (char *addr, int pos, int type);\nint v6addrtonum (struct ipv6_split spstr, struct v6addr *in6_addr, int type);\nint v6masktonum (char *nmask, int *nmaskbits, struct sip_in6_addr *in6_addr);\nint validate_v6addr (char *addr);\nint v6addrtoprefix (struct v6addr *in6_addr);\nint v6addrtosuffix (struct v6addr *in6_addr);\nint v6addrtobroadcast (struct v6addr *in6_addr);\nvoid v6_type (struct v6addr *in6_addr);\nvoid v6_comment (struct v6addr *in6_addr);\nint v6verifyv4 (struct sip_in6_addr addr);\nchar *get_comp_v6 (struct sip_in6_addr addr);\nint mk_ipv6addr (struct v6addr *in6_addr, char *addr);\nstruct dnsresp *new_dnsresp (struct dnsresp *d_resp);\nvoid free_dnsresp (struct dnsresp *d_resp);\nchar *resolve_addr (char *addr, int family, struct dnsresp *);\n\n/*\n * interface.c\n */\nstruct if_info *new_if (struct if_info *ifarg_cur);\nvoid free_if (struct if_info *ifa);\nstruct if_info *get_if_ext ();\n\n#endif\t\t\t\t/* SUB_H */\n"
  },
  {
    "path": "install-sh",
    "content": "#!/bin/sh\n# install - install a program, script, or datafile\n\nscriptversion=2011-01-19.21; # UTC\n\n# This originates from X11R5 (mit/util/scripts/install.sh), which was\n# later released in X11R6 (xc/config/util/install.sh) with the\n# following copyright and license.\n#\n# Copyright (C) 1994 X Consortium\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to\n# deal in the Software without restriction, including without limitation the\n# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n# sell copies of the Software, and to permit persons to whom the Software is\n# furnished to do so, subject to the following conditions:\n#\n# The above copyright notice and this permission notice shall be included in\n# all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE\n# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN\n# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-\n# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n#\n# Except as contained in this notice, the name of the X Consortium shall not\n# be used in advertising or otherwise to promote the sale, use or other deal-\n# ings in this Software without prior written authorization from the X Consor-\n# tium.\n#\n#\n# FSF changes to this file are in the public domain.\n#\n# Calling this script install-sh is preferred over install.sh, to prevent\n# `make' implicit rules from creating a file called install from it\n# when there is no Makefile.\n#\n# This script is compatible with the BSD install script, but was written\n# from scratch.\n\nnl='\n'\nIFS=\" \"\"\t$nl\"\n\n# set DOITPROG to echo to test this script\n\n# Don't use :- since 4.3BSD and earlier shells don't like it.\ndoit=${DOITPROG-}\nif test -z \"$doit\"; then\n  doit_exec=exec\nelse\n  doit_exec=$doit\nfi\n\n# Put in absolute file names if you don't have them in your path;\n# or use environment vars.\n\nchgrpprog=${CHGRPPROG-chgrp}\nchmodprog=${CHMODPROG-chmod}\nchownprog=${CHOWNPROG-chown}\ncmpprog=${CMPPROG-cmp}\ncpprog=${CPPROG-cp}\nmkdirprog=${MKDIRPROG-mkdir}\nmvprog=${MVPROG-mv}\nrmprog=${RMPROG-rm}\nstripprog=${STRIPPROG-strip}\n\nposix_glob='?'\ninitialize_posix_glob='\n  test \"$posix_glob\" != \"?\" || {\n    if (set -f) 2>/dev/null; then\n      posix_glob=\n    else\n      posix_glob=:\n    fi\n  }\n'\n\nposix_mkdir=\n\n# Desired mode of installed file.\nmode=0755\n\nchgrpcmd=\nchmodcmd=$chmodprog\nchowncmd=\nmvcmd=$mvprog\nrmcmd=\"$rmprog -f\"\nstripcmd=\n\nsrc=\ndst=\ndir_arg=\ndst_arg=\n\ncopy_on_change=false\nno_target_directory=\n\nusage=\"\\\nUsage: $0 [OPTION]... [-T] SRCFILE DSTFILE\n   or: $0 [OPTION]... SRCFILES... DIRECTORY\n   or: $0 [OPTION]... -t DIRECTORY SRCFILES...\n   or: $0 [OPTION]... -d DIRECTORIES...\n\nIn the 1st form, copy SRCFILE to DSTFILE.\nIn the 2nd and 3rd, copy all SRCFILES to DIRECTORY.\nIn the 4th, create DIRECTORIES.\n\nOptions:\n     --help     display this help and exit.\n     --version  display version info and exit.\n\n  -c            (ignored)\n  -C            install only if different (preserve the last data modification time)\n  -d            create directories instead of installing files.\n  -g GROUP      $chgrpprog installed files to GROUP.\n  -m MODE       $chmodprog installed files to MODE.\n  -o USER       $chownprog installed files to USER.\n  -s            $stripprog installed files.\n  -t DIRECTORY  install into DIRECTORY.\n  -T            report an error if DSTFILE is a directory.\n\nEnvironment variables override the default commands:\n  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG\n  RMPROG STRIPPROG\n\"\n\nwhile test $# -ne 0; do\n  case $1 in\n    -c) ;;\n\n    -C) copy_on_change=true;;\n\n    -d) dir_arg=true;;\n\n    -g) chgrpcmd=\"$chgrpprog $2\"\n\tshift;;\n\n    --help) echo \"$usage\"; exit $?;;\n\n    -m) mode=$2\n\tcase $mode in\n\t  *' '* | *'\t'* | *'\n'*\t  | *'*'* | *'?'* | *'['*)\n\t    echo \"$0: invalid mode: $mode\" >&2\n\t    exit 1;;\n\tesac\n\tshift;;\n\n    -o) chowncmd=\"$chownprog $2\"\n\tshift;;\n\n    -s) stripcmd=$stripprog;;\n\n    -t) dst_arg=$2\n\t# Protect names problematic for `test' and other utilities.\n\tcase $dst_arg in\n\t  -* | [=\\(\\)!]) dst_arg=./$dst_arg;;\n\tesac\n\tshift;;\n\n    -T) no_target_directory=true;;\n\n    --version) echo \"$0 $scriptversion\"; exit $?;;\n\n    --)\tshift\n\tbreak;;\n\n    -*)\techo \"$0: invalid option: $1\" >&2\n\texit 1;;\n\n    *)  break;;\n  esac\n  shift\ndone\n\nif test $# -ne 0 && test -z \"$dir_arg$dst_arg\"; then\n  # When -d is used, all remaining arguments are directories to create.\n  # When -t is used, the destination is already specified.\n  # Otherwise, the last argument is the destination.  Remove it from $@.\n  for arg\n  do\n    if test -n \"$dst_arg\"; then\n      # $@ is not empty: it contains at least $arg.\n      set fnord \"$@\" \"$dst_arg\"\n      shift # fnord\n    fi\n    shift # arg\n    dst_arg=$arg\n    # Protect names problematic for `test' and other utilities.\n    case $dst_arg in\n      -* | [=\\(\\)!]) dst_arg=./$dst_arg;;\n    esac\n  done\nfi\n\nif test $# -eq 0; then\n  if test -z \"$dir_arg\"; then\n    echo \"$0: no input file specified.\" >&2\n    exit 1\n  fi\n  # It's OK to call `install-sh -d' without argument.\n  # This can happen when creating conditional directories.\n  exit 0\nfi\n\nif test -z \"$dir_arg\"; then\n  do_exit='(exit $ret); exit $ret'\n  trap \"ret=129; $do_exit\" 1\n  trap \"ret=130; $do_exit\" 2\n  trap \"ret=141; $do_exit\" 13\n  trap \"ret=143; $do_exit\" 15\n\n  # Set umask so as not to create temps with too-generous modes.\n  # However, 'strip' requires both read and write access to temps.\n  case $mode in\n    # Optimize common cases.\n    *644) cp_umask=133;;\n    *755) cp_umask=22;;\n\n    *[0-7])\n      if test -z \"$stripcmd\"; then\n\tu_plus_rw=\n      else\n\tu_plus_rw='% 200'\n      fi\n      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;\n    *)\n      if test -z \"$stripcmd\"; then\n\tu_plus_rw=\n      else\n\tu_plus_rw=,u+rw\n      fi\n      cp_umask=$mode$u_plus_rw;;\n  esac\nfi\n\nfor src\ndo\n  # Protect names problematic for `test' and other utilities.\n  case $src in\n    -* | [=\\(\\)!]) src=./$src;;\n  esac\n\n  if test -n \"$dir_arg\"; then\n    dst=$src\n    dstdir=$dst\n    test -d \"$dstdir\"\n    dstdir_status=$?\n  else\n\n    # Waiting for this to be detected by the \"$cpprog $src $dsttmp\" command\n    # might cause directories to be created, which would be especially bad\n    # if $src (and thus $dsttmp) contains '*'.\n    if test ! -f \"$src\" && test ! -d \"$src\"; then\n      echo \"$0: $src does not exist.\" >&2\n      exit 1\n    fi\n\n    if test -z \"$dst_arg\"; then\n      echo \"$0: no destination specified.\" >&2\n      exit 1\n    fi\n    dst=$dst_arg\n\n    # If destination is a directory, append the input filename; won't work\n    # if double slashes aren't ignored.\n    if test -d \"$dst\"; then\n      if test -n \"$no_target_directory\"; then\n\techo \"$0: $dst_arg: Is a directory\" >&2\n\texit 1\n      fi\n      dstdir=$dst\n      dst=$dstdir/`basename \"$src\"`\n      dstdir_status=0\n    else\n      # Prefer dirname, but fall back on a substitute if dirname fails.\n      dstdir=`\n\t(dirname \"$dst\") 2>/dev/null ||\n\texpr X\"$dst\" : 'X\\(.*[^/]\\)//*[^/][^/]*/*$' \\| \\\n\t     X\"$dst\" : 'X\\(//\\)[^/]' \\| \\\n\t     X\"$dst\" : 'X\\(//\\)$' \\| \\\n\t     X\"$dst\" : 'X\\(/\\)' \\| . 2>/dev/null ||\n\techo X\"$dst\" |\n\t    sed '/^X\\(.*[^/]\\)\\/\\/*[^/][^/]*\\/*$/{\n\t\t   s//\\1/\n\t\t   q\n\t\t }\n\t\t /^X\\(\\/\\/\\)[^/].*/{\n\t\t   s//\\1/\n\t\t   q\n\t\t }\n\t\t /^X\\(\\/\\/\\)$/{\n\t\t   s//\\1/\n\t\t   q\n\t\t }\n\t\t /^X\\(\\/\\).*/{\n\t\t   s//\\1/\n\t\t   q\n\t\t }\n\t\t s/.*/./; q'\n      `\n\n      test -d \"$dstdir\"\n      dstdir_status=$?\n    fi\n  fi\n\n  obsolete_mkdir_used=false\n\n  if test $dstdir_status != 0; then\n    case $posix_mkdir in\n      '')\n\t# Create intermediate dirs using mode 755 as modified by the umask.\n\t# This is like FreeBSD 'install' as of 1997-10-28.\n\tumask=`umask`\n\tcase $stripcmd.$umask in\n\t  # Optimize common cases.\n\t  *[2367][2367]) mkdir_umask=$umask;;\n\t  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;\n\n\t  *[0-7])\n\t    mkdir_umask=`expr $umask + 22 \\\n\t      - $umask % 100 % 40 + $umask % 20 \\\n\t      - $umask % 10 % 4 + $umask % 2\n\t    `;;\n\t  *) mkdir_umask=$umask,go-w;;\n\tesac\n\n\t# With -d, create the new directory with the user-specified mode.\n\t# Otherwise, rely on $mkdir_umask.\n\tif test -n \"$dir_arg\"; then\n\t  mkdir_mode=-m$mode\n\telse\n\t  mkdir_mode=\n\tfi\n\n\tposix_mkdir=false\n\tcase $umask in\n\t  *[123567][0-7][0-7])\n\t    # POSIX mkdir -p sets u+wx bits regardless of umask, which\n\t    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.\n\t    ;;\n\t  *)\n\t    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$\n\t    trap 'ret=$?; rmdir \"$tmpdir/d\" \"$tmpdir\" 2>/dev/null; exit $ret' 0\n\n\t    if (umask $mkdir_umask &&\n\t\texec $mkdirprog $mkdir_mode -p -- \"$tmpdir/d\") >/dev/null 2>&1\n\t    then\n\t      if test -z \"$dir_arg\" || {\n\t\t   # Check for POSIX incompatibilities with -m.\n\t\t   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or\n\t\t   # other-writeable bit of parent directory when it shouldn't.\n\t\t   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.\n\t\t   ls_ld_tmpdir=`ls -ld \"$tmpdir\"`\n\t\t   case $ls_ld_tmpdir in\n\t\t     d????-?r-*) different_mode=700;;\n\t\t     d????-?--*) different_mode=755;;\n\t\t     *) false;;\n\t\t   esac &&\n\t\t   $mkdirprog -m$different_mode -p -- \"$tmpdir\" && {\n\t\t     ls_ld_tmpdir_1=`ls -ld \"$tmpdir\"`\n\t\t     test \"$ls_ld_tmpdir\" = \"$ls_ld_tmpdir_1\"\n\t\t   }\n\t\t }\n\t      then posix_mkdir=:\n\t      fi\n\t      rmdir \"$tmpdir/d\" \"$tmpdir\"\n\t    else\n\t      # Remove any dirs left behind by ancient mkdir implementations.\n\t      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null\n\t    fi\n\t    trap '' 0;;\n\tesac;;\n    esac\n\n    if\n      $posix_mkdir && (\n\tumask $mkdir_umask &&\n\t$doit_exec $mkdirprog $mkdir_mode -p -- \"$dstdir\"\n      )\n    then :\n    else\n\n      # The umask is ridiculous, or mkdir does not conform to POSIX,\n      # or it failed possibly due to a race condition.  Create the\n      # directory the slow way, step by step, checking for races as we go.\n\n      case $dstdir in\n\t/*) prefix='/';;\n\t[-=\\(\\)!]*) prefix='./';;\n\t*)  prefix='';;\n      esac\n\n      eval \"$initialize_posix_glob\"\n\n      oIFS=$IFS\n      IFS=/\n      $posix_glob set -f\n      set fnord $dstdir\n      shift\n      $posix_glob set +f\n      IFS=$oIFS\n\n      prefixes=\n\n      for d\n      do\n\ttest X\"$d\" = X && continue\n\n\tprefix=$prefix$d\n\tif test -d \"$prefix\"; then\n\t  prefixes=\n\telse\n\t  if $posix_mkdir; then\n\t    (umask=$mkdir_umask &&\n\t     $doit_exec $mkdirprog $mkdir_mode -p -- \"$dstdir\") && break\n\t    # Don't fail if two instances are running concurrently.\n\t    test -d \"$prefix\" || exit 1\n\t  else\n\t    case $prefix in\n\t      *\\'*) qprefix=`echo \"$prefix\" | sed \"s/'/'\\\\\\\\\\\\\\\\''/g\"`;;\n\t      *) qprefix=$prefix;;\n\t    esac\n\t    prefixes=\"$prefixes '$qprefix'\"\n\t  fi\n\tfi\n\tprefix=$prefix/\n      done\n\n      if test -n \"$prefixes\"; then\n\t# Don't fail if two instances are running concurrently.\n\t(umask $mkdir_umask &&\n\t eval \"\\$doit_exec \\$mkdirprog $prefixes\") ||\n\t  test -d \"$dstdir\" || exit 1\n\tobsolete_mkdir_used=true\n      fi\n    fi\n  fi\n\n  if test -n \"$dir_arg\"; then\n    { test -z \"$chowncmd\" || $doit $chowncmd \"$dst\"; } &&\n    { test -z \"$chgrpcmd\" || $doit $chgrpcmd \"$dst\"; } &&\n    { test \"$obsolete_mkdir_used$chowncmd$chgrpcmd\" = false ||\n      test -z \"$chmodcmd\" || $doit $chmodcmd $mode \"$dst\"; } || exit 1\n  else\n\n    # Make a couple of temp file names in the proper directory.\n    dsttmp=$dstdir/_inst.$$_\n    rmtmp=$dstdir/_rm.$$_\n\n    # Trap to clean up those temp files at exit.\n    trap 'ret=$?; rm -f \"$dsttmp\" \"$rmtmp\" && exit $ret' 0\n\n    # Copy the file name to the temp name.\n    (umask $cp_umask && $doit_exec $cpprog \"$src\" \"$dsttmp\") &&\n\n    # and set any options; do chmod last to preserve setuid bits.\n    #\n    # If any of these fail, we abort the whole thing.  If we want to\n    # ignore errors from any of these, just make sure not to ignore\n    # errors from the above \"$doit $cpprog $src $dsttmp\" command.\n    #\n    { test -z \"$chowncmd\" || $doit $chowncmd \"$dsttmp\"; } &&\n    { test -z \"$chgrpcmd\" || $doit $chgrpcmd \"$dsttmp\"; } &&\n    { test -z \"$stripcmd\" || $doit $stripcmd \"$dsttmp\"; } &&\n    { test -z \"$chmodcmd\" || $doit $chmodcmd $mode \"$dsttmp\"; } &&\n\n    # If -C, don't bother to copy if it wouldn't change the file.\n    if $copy_on_change &&\n       old=`LC_ALL=C ls -dlL \"$dst\"\t2>/dev/null` &&\n       new=`LC_ALL=C ls -dlL \"$dsttmp\"\t2>/dev/null` &&\n\n       eval \"$initialize_posix_glob\" &&\n       $posix_glob set -f &&\n       set X $old && old=:$2:$4:$5:$6 &&\n       set X $new && new=:$2:$4:$5:$6 &&\n       $posix_glob set +f &&\n\n       test \"$old\" = \"$new\" &&\n       $cmpprog \"$dst\" \"$dsttmp\" >/dev/null 2>&1\n    then\n      rm -f \"$dsttmp\"\n    else\n      # Rename the file to the real destination.\n      $doit $mvcmd -f \"$dsttmp\" \"$dst\" 2>/dev/null ||\n\n      # The rename failed, perhaps because mv can't rename something else\n      # to itself, or perhaps because mv is so ancient that it does not\n      # support -f.\n      {\n\t# Now remove or move aside any old file at destination location.\n\t# We try this two ways since rm can't unlink itself on some\n\t# systems and the destination file might be busy for other\n\t# reasons.  In this case, the final cleanup might fail but the new\n\t# file should still install successfully.\n\t{\n\t  test ! -f \"$dst\" ||\n\t  $doit $rmcmd -f \"$dst\" 2>/dev/null ||\n\t  { $doit $mvcmd -f \"$dst\" \"$rmtmp\" 2>/dev/null &&\n\t    { $doit $rmcmd -f \"$rmtmp\" 2>/dev/null; :; }\n\t  } ||\n\t  { echo \"$0: cannot unlink or rename $dst\" >&2\n\t    (exit 1); exit 1\n\t  }\n\t} &&\n\n\t# Now rename the file to the real destination.\n\t$doit $mvcmd \"$dsttmp\" \"$dst\"\n      }\n    fi || exit 1\n\n    trap '' 0\n  fi\ndone\n\n# Local variables:\n# eval: (add-hook 'write-file-hooks 'time-stamp)\n# time-stamp-start: \"scriptversion=\"\n# time-stamp-format: \"%:y-%02m-%02d.%02H\"\n# time-stamp-time-zone: \"UTC\"\n# time-stamp-end: \"; # UTC\"\n# End:\n"
  },
  {
    "path": "missing",
    "content": "#! /bin/sh\n# Common stub for a few missing GNU programs while installing.\n\nscriptversion=2012-01-06.13; # UTC\n\n# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,\n# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.\n# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.\n\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2, or (at your option)\n# any later version.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n# As a special exception to the GNU General Public License, if you\n# distribute this file as part of a program that contains a\n# configuration script generated by Autoconf, you may include it under\n# the same distribution terms that you use for the rest of that program.\n\nif test $# -eq 0; then\n  echo 1>&2 \"Try \\`$0 --help' for more information\"\n  exit 1\nfi\n\nrun=:\nsed_output='s/.* --output[ =]\\([^ ]*\\).*/\\1/p'\nsed_minuso='s/.* -o \\([^ ]*\\).*/\\1/p'\n\n# In the cases where this matters, `missing' is being run in the\n# srcdir already.\nif test -f configure.ac; then\n  configure_ac=configure.ac\nelse\n  configure_ac=configure.in\nfi\n\nmsg=\"missing on your system\"\n\ncase $1 in\n--run)\n  # Try to run requested program, and just exit if it succeeds.\n  run=\n  shift\n  \"$@\" && exit 0\n  # Exit code 63 means version mismatch.  This often happens\n  # when the user try to use an ancient version of a tool on\n  # a file that requires a minimum version.  In this case we\n  # we should proceed has if the program had been absent, or\n  # if --run hadn't been passed.\n  if test $? = 63; then\n    run=:\n    msg=\"probably too old\"\n  fi\n  ;;\n\n  -h|--h|--he|--hel|--help)\n    echo \"\\\n$0 [OPTION]... PROGRAM [ARGUMENT]...\n\nHandle \\`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an\nerror status if there is no known handling for PROGRAM.\n\nOptions:\n  -h, --help      display this help and exit\n  -v, --version   output version information and exit\n  --run           try to run the given command, and emulate it if it fails\n\nSupported PROGRAM values:\n  aclocal      touch file \\`aclocal.m4'\n  autoconf     touch file \\`configure'\n  autoheader   touch file \\`config.h.in'\n  autom4te     touch the output file, or create a stub one\n  automake     touch all \\`Makefile.in' files\n  bison        create \\`y.tab.[ch]', if possible, from existing .[ch]\n  flex         create \\`lex.yy.c', if possible, from existing .c\n  help2man     touch the output file\n  lex          create \\`lex.yy.c', if possible, from existing .c\n  makeinfo     touch the output file\n  yacc         create \\`y.tab.[ch]', if possible, from existing .[ch]\n\nVersion suffixes to PROGRAM as well as the prefixes \\`gnu-', \\`gnu', and\n\\`g' are ignored when checking the name.\n\nSend bug reports to <bug-automake@gnu.org>.\"\n    exit $?\n    ;;\n\n  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)\n    echo \"missing $scriptversion (GNU Automake)\"\n    exit $?\n    ;;\n\n  -*)\n    echo 1>&2 \"$0: Unknown \\`$1' option\"\n    echo 1>&2 \"Try \\`$0 --help' for more information\"\n    exit 1\n    ;;\n\nesac\n\n# normalize program name to check for.\nprogram=`echo \"$1\" | sed '\n  s/^gnu-//; t\n  s/^gnu//; t\n  s/^g//; t'`\n\n# Now exit if we have it, but it failed.  Also exit now if we\n# don't have it and --version was passed (most likely to detect\n# the program).  This is about non-GNU programs, so use $1 not\n# $program.\ncase $1 in\n  lex*|yacc*)\n    # Not GNU programs, they don't have --version.\n    ;;\n\n  *)\n    if test -z \"$run\" && ($1 --version) > /dev/null 2>&1; then\n       # We have it, but it failed.\n       exit 1\n    elif test \"x$2\" = \"x--version\" || test \"x$2\" = \"x--help\"; then\n       # Could not run --version or --help.  This is probably someone\n       # running `$TOOL --version' or `$TOOL --help' to check whether\n       # $TOOL exists and not knowing $TOOL uses missing.\n       exit 1\n    fi\n    ;;\nesac\n\n# If it does not exist, or fails to run (possibly an outdated version),\n# try to emulate it.\ncase $program in\n  aclocal*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified \\`acinclude.m4' or \\`${configure_ac}'.  You might want\n         to install the \\`Automake' and \\`Perl' packages.  Grab them from\n         any GNU archive site.\"\n    touch aclocal.m4\n    ;;\n\n  autoconf*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified \\`${configure_ac}'.  You might want to install the\n         \\`Autoconf' and \\`GNU m4' packages.  Grab them from any GNU\n         archive site.\"\n    touch configure\n    ;;\n\n  autoheader*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified \\`acconfig.h' or \\`${configure_ac}'.  You might want\n         to install the \\`Autoconf' and \\`GNU m4' packages.  Grab them\n         from any GNU archive site.\"\n    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\\([^)]*\\)).*/\\1/p' ${configure_ac}`\n    test -z \"$files\" && files=\"config.h\"\n    touch_files=\n    for f in $files; do\n      case $f in\n      *:*) touch_files=\"$touch_files \"`echo \"$f\" |\n\t\t\t\t       sed -e 's/^[^:]*://' -e 's/:.*//'`;;\n      *) touch_files=\"$touch_files $f.in\";;\n      esac\n    done\n    touch $touch_files\n    ;;\n\n  automake*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified \\`Makefile.am', \\`acinclude.m4' or \\`${configure_ac}'.\n         You might want to install the \\`Automake' and \\`Perl' packages.\n         Grab them from any GNU archive site.\"\n    find . -type f -name Makefile.am -print |\n\t   sed 's/\\.am$/.in/' |\n\t   while read f; do touch \"$f\"; done\n    ;;\n\n  autom4te*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is needed, but is $msg.\n         You might have modified some files without having the\n         proper tools for further handling them.\n         You can get \\`$1' as part of \\`Autoconf' from any GNU\n         archive site.\"\n\n    file=`echo \"$*\" | sed -n \"$sed_output\"`\n    test -z \"$file\" && file=`echo \"$*\" | sed -n \"$sed_minuso\"`\n    if test -f \"$file\"; then\n\ttouch $file\n    else\n\ttest -z \"$file\" || exec >$file\n\techo \"#! /bin/sh\"\n\techo \"# Created by GNU Automake missing as a replacement of\"\n\techo \"#  $ $@\"\n\techo \"exit 0\"\n\tchmod +x $file\n\texit 1\n    fi\n    ;;\n\n  bison*|yacc*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' $msg.  You should only need it if\n         you modified a \\`.y' file.  You may need the \\`Bison' package\n         in order for those modifications to take effect.  You can get\n         \\`Bison' from any GNU archive site.\"\n    rm -f y.tab.c y.tab.h\n    if test $# -ne 1; then\n        eval LASTARG=\\${$#}\n\tcase $LASTARG in\n\t*.y)\n\t    SRCFILE=`echo \"$LASTARG\" | sed 's/y$/c/'`\n\t    if test -f \"$SRCFILE\"; then\n\t         cp \"$SRCFILE\" y.tab.c\n\t    fi\n\t    SRCFILE=`echo \"$LASTARG\" | sed 's/y$/h/'`\n\t    if test -f \"$SRCFILE\"; then\n\t         cp \"$SRCFILE\" y.tab.h\n\t    fi\n\t  ;;\n\tesac\n    fi\n    if test ! -f y.tab.h; then\n\techo >y.tab.h\n    fi\n    if test ! -f y.tab.c; then\n\techo 'main() { return 0; }' >y.tab.c\n    fi\n    ;;\n\n  lex*|flex*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified a \\`.l' file.  You may need the \\`Flex' package\n         in order for those modifications to take effect.  You can get\n         \\`Flex' from any GNU archive site.\"\n    rm -f lex.yy.c\n    if test $# -ne 1; then\n        eval LASTARG=\\${$#}\n\tcase $LASTARG in\n\t*.l)\n\t    SRCFILE=`echo \"$LASTARG\" | sed 's/l$/c/'`\n\t    if test -f \"$SRCFILE\"; then\n\t         cp \"$SRCFILE\" lex.yy.c\n\t    fi\n\t  ;;\n\tesac\n    fi\n    if test ! -f lex.yy.c; then\n\techo 'main() { return 0; }' >lex.yy.c\n    fi\n    ;;\n\n  help2man*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n\t you modified a dependency of a manual page.  You may need the\n\t \\`Help2man' package in order for those modifications to take\n\t effect.  You can get \\`Help2man' from any GNU archive site.\"\n\n    file=`echo \"$*\" | sed -n \"$sed_output\"`\n    test -z \"$file\" && file=`echo \"$*\" | sed -n \"$sed_minuso\"`\n    if test -f \"$file\"; then\n\ttouch $file\n    else\n\ttest -z \"$file\" || exec >$file\n\techo \".ab help2man is required to generate this page\"\n\texit $?\n    fi\n    ;;\n\n  makeinfo*)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is $msg.  You should only need it if\n         you modified a \\`.texi' or \\`.texinfo' file, or any other file\n         indirectly affecting the aspect of the manual.  The spurious\n         call might also be the consequence of using a buggy \\`make' (AIX,\n         DU, IRIX).  You might want to install the \\`Texinfo' package or\n         the \\`GNU make' package.  Grab either from any GNU archive site.\"\n    # The file to touch is that specified with -o ...\n    file=`echo \"$*\" | sed -n \"$sed_output\"`\n    test -z \"$file\" && file=`echo \"$*\" | sed -n \"$sed_minuso\"`\n    if test -z \"$file\"; then\n      # ... or it is the one specified with @setfilename ...\n      infile=`echo \"$*\" | sed 's/.* \\([^ ]*\\) *$/\\1/'`\n      file=`sed -n '\n\t/^@setfilename/{\n\t  s/.* \\([^ ]*\\) *$/\\1/\n\t  p\n\t  q\n\t}' $infile`\n      # ... or it is derived from the source name (dir/f.texi becomes f.info)\n      test -z \"$file\" && file=`echo \"$infile\" | sed 's,.*/,,;s,.[^.]*$,,'`.info\n    fi\n    # If the file does not exist, the user really needs makeinfo;\n    # let's fail without touching anything.\n    test -f $file || exit 1\n    touch $file\n    ;;\n\n  *)\n    echo 1>&2 \"\\\nWARNING: \\`$1' is needed, and is $msg.\n         You might have modified some files without having the\n         proper tools for further handling them.  Check the \\`README' file,\n         it often tells you about the needed prerequisites for installing\n         this package.  You may also peek at any GNU archive site, in case\n         some other package would contain this missing \\`$1' program.\"\n    exit 1\n    ;;\nesac\n\nexit 0\n\n# Local variables:\n# eval: (add-hook 'write-file-hooks 'time-stamp)\n# time-stamp-start: \"scriptversion=\"\n# time-stamp-format: \"%:y-%02m-%02d.%02H\"\n# time-stamp-time-zone: \"UTC\"\n# time-stamp-end: \"; # UTC\"\n# End:\n"
  },
  {
    "path": "mkinstalldirs",
    "content": "#! /bin/sh\n# mkinstalldirs --- make directory hierarchy\n\nscriptversion=2009-04-28.21; # UTC\n\n# Original author: Noah Friedman <friedman@prep.ai.mit.edu>\n# Created: 1993-05-16\n# Public domain.\n#\n# This file is maintained in Automake, please report\n# bugs to <bug-automake@gnu.org> or send patches to\n# <automake-patches@gnu.org>.\n\nnl='\n'\nIFS=\" \"\"\t$nl\"\nerrstatus=0\ndirmode=\n\nusage=\"\\\nUsage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...\n\nCreate each directory DIR (with mode MODE, if specified), including all\nleading file name components.\n\nReport bugs to <bug-automake@gnu.org>.\"\n\n# process command line arguments\nwhile test $# -gt 0 ; do\n  case $1 in\n    -h | --help | --h*)         # -h for help\n      echo \"$usage\"\n      exit $?\n      ;;\n    -m)                         # -m PERM arg\n      shift\n      test $# -eq 0 && { echo \"$usage\" 1>&2; exit 1; }\n      dirmode=$1\n      shift\n      ;;\n    --version)\n      echo \"$0 $scriptversion\"\n      exit $?\n      ;;\n    --)                         # stop option processing\n      shift\n      break\n      ;;\n    -*)                         # unknown option\n      echo \"$usage\" 1>&2\n      exit 1\n      ;;\n    *)                          # first non-opt arg\n      break\n      ;;\n  esac\ndone\n\nfor file\ndo\n  if test -d \"$file\"; then\n    shift\n  else\n    break\n  fi\ndone\n\ncase $# in\n  0) exit 0 ;;\nesac\n\n# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and\n# mkdir -p a/c at the same time, both will detect that a is missing,\n# one will create a, then the other will try to create a and die with\n# a \"File exists\" error.  This is a problem when calling mkinstalldirs\n# from a parallel make.  We use --version in the probe to restrict\n# ourselves to GNU mkdir, which is thread-safe.\ncase $dirmode in\n  '')\n    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then\n      echo \"mkdir -p -- $*\"\n      exec mkdir -p -- \"$@\"\n    else\n      # On NextStep and OpenStep, the `mkdir' command does not\n      # recognize any option.  It will interpret all options as\n      # directories to create, and then abort because `.' already\n      # exists.\n      test -d ./-p && rmdir ./-p\n      test -d ./--version && rmdir ./--version\n    fi\n    ;;\n  *)\n    if mkdir -m \"$dirmode\" -p --version . >/dev/null 2>&1 &&\n       test ! -d ./--version; then\n      echo \"mkdir -m $dirmode -p -- $*\"\n      exec mkdir -m \"$dirmode\" -p -- \"$@\"\n    else\n      # Clean up after NextStep and OpenStep mkdir.\n      for d in ./-m ./-p ./--version \"./$dirmode\";\n      do\n        test -d $d && rmdir $d\n      done\n    fi\n    ;;\nesac\n\nfor file\ndo\n  case $file in\n    /*) pathcomp=/ ;;\n    *)  pathcomp= ;;\n  esac\n  oIFS=$IFS\n  IFS=/\n  set fnord $file\n  shift\n  IFS=$oIFS\n\n  for d\n  do\n    test \"x$d\" = x && continue\n\n    pathcomp=$pathcomp$d\n    case $pathcomp in\n      -*) pathcomp=./$pathcomp ;;\n    esac\n\n    if test ! -d \"$pathcomp\"; then\n      echo \"mkdir $pathcomp\"\n\n      mkdir \"$pathcomp\" || lasterr=$?\n\n      if test ! -d \"$pathcomp\"; then\n\terrstatus=$lasterr\n      else\n\tif test ! -z \"$dirmode\"; then\n\t  echo \"chmod $dirmode $pathcomp\"\n\t  lasterr=\n\t  chmod \"$dirmode\" \"$pathcomp\" || lasterr=$?\n\n\t  if test ! -z \"$lasterr\"; then\n\t    errstatus=$lasterr\n\t  fi\n\tfi\n      fi\n    fi\n\n    pathcomp=$pathcomp/\n  done\ndone\n\nexit $errstatus\n\n# Local Variables:\n# mode: shell-script\n# sh-indentation: 2\n# eval: (add-hook 'write-file-hooks 'time-stamp)\n# time-stamp-start: \"scriptversion=\"\n# time-stamp-format: \"%:y-%02m-%02d.%02H\"\n# time-stamp-time-zone: \"UTC\"\n# time-stamp-end: \"; # UTC\"\n# End:\n"
  },
  {
    "path": "src/Makefile.am",
    "content": "INCLUDES = -I$(top_srcdir)/include\nbin_PROGRAMS = sipcalc\nsipcalc_SOURCES = sub-func.c interface.c sub-output.c sub.c\n\nsub-func.o: sub-func.c ../include/sub.h ../include/sub-o.h\ninterface.o: interface.c ../include/sub.h\nsub-output.o: sub-output.c ../include/sub.h\nsub.o: sub.c ../include/sub.h ../include/sub-o.h\n\n"
  },
  {
    "path": "src/Makefile.in",
    "content": "# Makefile.in generated by automake 1.11.6 from Makefile.am.\n# @configure_input@\n\n# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,\n# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software\n# Foundation, Inc.\n# This Makefile.in is free software; the Free Software Foundation\n# gives unlimited permission to copy and/or distribute it,\n# with or without modifications, as long as this notice is preserved.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY, to the extent permitted by law; without\n# even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n# PARTICULAR PURPOSE.\n\n@SET_MAKE@\n\nVPATH = @srcdir@\nam__make_dryrun = \\\n  { \\\n    am__dry=no; \\\n    case $$MAKEFLAGS in \\\n      *\\\\[\\ \\\t]*) \\\n        echo 'am--echo: ; @echo \"AM\"  OK' | $(MAKE) -f - 2>/dev/null \\\n          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \\\n      *) \\\n        for am__flg in $$MAKEFLAGS; do \\\n          case $$am__flg in \\\n            *=*|--*) ;; \\\n            *n*) am__dry=yes; break;; \\\n          esac; \\\n        done;; \\\n    esac; \\\n    test $$am__dry = yes; \\\n  }\npkgdatadir = $(datadir)/@PACKAGE@\npkgincludedir = $(includedir)/@PACKAGE@\npkglibdir = $(libdir)/@PACKAGE@\npkglibexecdir = $(libexecdir)/@PACKAGE@\nam__cd = CDPATH=\"$${ZSH_VERSION+.}$(PATH_SEPARATOR)\" && cd\ninstall_sh_DATA = $(install_sh) -c -m 644\ninstall_sh_PROGRAM = $(install_sh) -c\ninstall_sh_SCRIPT = $(install_sh) -c\nINSTALL_HEADER = $(INSTALL_DATA)\ntransform = $(program_transform_name)\nNORMAL_INSTALL = :\nPRE_INSTALL = :\nPOST_INSTALL = :\nNORMAL_UNINSTALL = :\nPRE_UNINSTALL = :\nPOST_UNINSTALL = :\nbin_PROGRAMS = sipcalc$(EXEEXT)\nsubdir = src\nDIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in\nACLOCAL_M4 = $(top_srcdir)/aclocal.m4\nam__aclocal_m4_deps = $(top_srcdir)/configure.ac\nam__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\\n\t$(ACLOCAL_M4)\nmkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs\nCONFIG_HEADER = $(top_builddir)/config.h\nCONFIG_CLEAN_FILES =\nCONFIG_CLEAN_VPATH_FILES =\nam__installdirs = \"$(DESTDIR)$(bindir)\"\nPROGRAMS = $(bin_PROGRAMS)\nam_sipcalc_OBJECTS = sub-func.$(OBJEXT) interface.$(OBJEXT) \\\n\tsub-output.$(OBJEXT) sub.$(OBJEXT)\nsipcalc_OBJECTS = $(am_sipcalc_OBJECTS)\nsipcalc_LDADD = $(LDADD)\nDEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)\ndepcomp = $(SHELL) $(top_srcdir)/depcomp\nam__depfiles_maybe = depfiles\nam__mv = mv -f\nCOMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \\\n\t$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)\nCCLD = $(CC)\nLINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@\nSOURCES = $(sipcalc_SOURCES)\nDIST_SOURCES = $(sipcalc_SOURCES)\nam__can_run_installinfo = \\\n  case $$AM_UPDATE_INFO_DIR in \\\n    n|no|NO) false;; \\\n    *) (install-info --version) >/dev/null 2>&1;; \\\n  esac\nETAGS = etags\nCTAGS = ctags\nDISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)\nACLOCAL = @ACLOCAL@\nAMTAR = @AMTAR@\nAUTOCONF = @AUTOCONF@\nAUTOHEADER = @AUTOHEADER@\nAUTOMAKE = @AUTOMAKE@\nAWK = @AWK@\nCC = @CC@\nCCDEPMODE = @CCDEPMODE@\nCFLAGS = @CFLAGS@\nCPP = @CPP@\nCPPFLAGS = @CPPFLAGS@\nCYGPATH_W = @CYGPATH_W@\nDEFS = @DEFS@\nDEPDIR = @DEPDIR@\nECHO_C = @ECHO_C@\nECHO_N = @ECHO_N@\nECHO_T = @ECHO_T@\nEGREP = @EGREP@\nEXEEXT = @EXEEXT@\nGREP = @GREP@\nINSTALL = @INSTALL@\nINSTALL_DATA = @INSTALL_DATA@\nINSTALL_PROGRAM = @INSTALL_PROGRAM@\nINSTALL_SCRIPT = @INSTALL_SCRIPT@\nINSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@\nLDFLAGS = @LDFLAGS@\nLIBOBJS = @LIBOBJS@\nLIBS = @LIBS@\nLTLIBOBJS = @LTLIBOBJS@\nMAKEINFO = @MAKEINFO@\nMKDIR_P = @MKDIR_P@\nOBJEXT = @OBJEXT@\nPACKAGE = @PACKAGE@\nPACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@\nPACKAGE_NAME = @PACKAGE_NAME@\nPACKAGE_STRING = @PACKAGE_STRING@\nPACKAGE_TARNAME = @PACKAGE_TARNAME@\nPACKAGE_URL = @PACKAGE_URL@\nPACKAGE_VERSION = @PACKAGE_VERSION@\nPATH_SEPARATOR = @PATH_SEPARATOR@\nSET_MAKE = @SET_MAKE@\nSHELL = @SHELL@\nSTRIP = @STRIP@\nVERSION = @VERSION@\nabs_builddir = @abs_builddir@\nabs_srcdir = @abs_srcdir@\nabs_top_builddir = @abs_top_builddir@\nabs_top_srcdir = @abs_top_srcdir@\nac_ct_CC = @ac_ct_CC@\nam__include = @am__include@\nam__leading_dot = @am__leading_dot@\nam__quote = @am__quote@\nam__tar = @am__tar@\nam__untar = @am__untar@\nbindir = @bindir@\nbuild_alias = @build_alias@\nbuilddir = @builddir@\ndatadir = @datadir@\ndatarootdir = @datarootdir@\ndocdir = @docdir@\ndvidir = @dvidir@\nexec_prefix = @exec_prefix@\nhost_alias = @host_alias@\nhtmldir = @htmldir@\nincludedir = @includedir@\ninfodir = @infodir@\ninstall_sh = @install_sh@\nlibdir = @libdir@\nlibexecdir = @libexecdir@\nlocaledir = @localedir@\nlocalstatedir = @localstatedir@\nmandir = @mandir@\nmkdir_p = @mkdir_p@\noldincludedir = @oldincludedir@\npdfdir = @pdfdir@\nprefix = @prefix@\nprogram_transform_name = @program_transform_name@\npsdir = @psdir@\nsbindir = @sbindir@\nsharedstatedir = @sharedstatedir@\nsrcdir = @srcdir@\nsysconfdir = @sysconfdir@\ntarget_alias = @target_alias@\ntop_build_prefix = @top_build_prefix@\ntop_builddir = @top_builddir@\ntop_srcdir = @top_srcdir@\nINCLUDES = -I$(top_srcdir)/include\nsipcalc_SOURCES = sub-func.c interface.c sub-output.c sub.c\nall: all-am\n\n.SUFFIXES:\n.SUFFIXES: .c .o .obj\n$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)\n\t@for dep in $?; do \\\n\t  case '$(am__configure_deps)' in \\\n\t    *$$dep*) \\\n\t      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \\\n\t        && { if test -f $@; then exit 0; else break; fi; }; \\\n\t      exit 1;; \\\n\t  esac; \\\n\tdone; \\\n\techo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \\\n\t$(am__cd) $(top_srcdir) && \\\n\t  $(AUTOMAKE) --gnu src/Makefile\n.PRECIOUS: Makefile\nMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status\n\t@case '$?' in \\\n\t  *config.status*) \\\n\t    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \\\n\t  *) \\\n\t    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \\\n\t    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \\\n\tesac;\n\n$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n\n$(top_srcdir)/configure:  $(am__configure_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(ACLOCAL_M4):  $(am__aclocal_m4_deps)\n\tcd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh\n$(am__aclocal_m4_deps):\ninstall-binPROGRAMS: $(bin_PROGRAMS)\n\t@$(NORMAL_INSTALL)\n\t@list='$(bin_PROGRAMS)'; test -n \"$(bindir)\" || list=; \\\n\tif test -n \"$$list\"; then \\\n\t  echo \" $(MKDIR_P) '$(DESTDIR)$(bindir)'\"; \\\n\t  $(MKDIR_P) \"$(DESTDIR)$(bindir)\" || exit 1; \\\n\tfi; \\\n\tfor p in $$list; do echo \"$$p $$p\"; done | \\\n\tsed 's/$(EXEEXT)$$//' | \\\n\twhile read p p1; do if test -f $$p; \\\n\t  then echo \"$$p\"; echo \"$$p\"; else :; fi; \\\n\tdone | \\\n\tsed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \\\n\t    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \\\n\tsed 'N;N;N;s,\\n, ,g' | \\\n\t$(AWK) 'BEGIN { files[\".\"] = \"\"; dirs[\".\"] = 1 } \\\n\t  { d=$$3; if (dirs[d] != 1) { print \"d\", d; dirs[d] = 1 } \\\n\t    if ($$2 == $$4) files[d] = files[d] \" \" $$1; \\\n\t    else { print \"f\", $$3 \"/\" $$4, $$1; } } \\\n\t  END { for (d in files) print \"f\", d, files[d] }' | \\\n\twhile read type dir files; do \\\n\t    if test \"$$dir\" = .; then dir=; else dir=/$$dir; fi; \\\n\t    test -z \"$$files\" || { \\\n\t      echo \" $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'\"; \\\n\t      $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files \"$(DESTDIR)$(bindir)$$dir\" || exit $$?; \\\n\t    } \\\n\t; done\n\nuninstall-binPROGRAMS:\n\t@$(NORMAL_UNINSTALL)\n\t@list='$(bin_PROGRAMS)'; test -n \"$(bindir)\" || list=; \\\n\tfiles=`for p in $$list; do echo \"$$p\"; done | \\\n\t  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \\\n\t      -e 's/$$/$(EXEEXT)/' `; \\\n\ttest -n \"$$list\" || exit 0; \\\n\techo \" ( cd '$(DESTDIR)$(bindir)' && rm -f\" $$files \")\"; \\\n\tcd \"$(DESTDIR)$(bindir)\" && rm -f $$files\n\nclean-binPROGRAMS:\n\t-test -z \"$(bin_PROGRAMS)\" || rm -f $(bin_PROGRAMS)\nsipcalc$(EXEEXT): $(sipcalc_OBJECTS) $(sipcalc_DEPENDENCIES) $(EXTRA_sipcalc_DEPENDENCIES) \n\t@rm -f sipcalc$(EXEEXT)\n\t$(LINK) $(sipcalc_OBJECTS) $(sipcalc_LDADD) $(LIBS)\n\nmostlyclean-compile:\n\t-rm -f *.$(OBJEXT)\n\ndistclean-compile:\n\t-rm -f *.tab.c\n\n@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@\n@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub-func.Po@am__quote@\n@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub-output.Po@am__quote@\n@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub.Po@am__quote@\n\n.c.o:\n@am__fastdepCC_TRUE@\t$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<\n@am__fastdepCC_TRUE@\t$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po\n@AMDEP_TRUE@@am__fastdepCC_FALSE@\tsource='$<' object='$@' libtool=no @AMDEPBACKSLASH@\n@AMDEP_TRUE@@am__fastdepCC_FALSE@\tDEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@\n@am__fastdepCC_FALSE@\t$(COMPILE) -c $<\n\n.c.obj:\n@am__fastdepCC_TRUE@\t$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`\n@am__fastdepCC_TRUE@\t$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po\n@AMDEP_TRUE@@am__fastdepCC_FALSE@\tsource='$<' object='$@' libtool=no @AMDEPBACKSLASH@\n@AMDEP_TRUE@@am__fastdepCC_FALSE@\tDEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@\n@am__fastdepCC_FALSE@\t$(COMPILE) -c `$(CYGPATH_W) '$<'`\n\nID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)\n\tlist='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\tmkid -fID $$unique\ntags: TAGS\n\nTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \\\n\t\t$(TAGS_FILES) $(LISP)\n\tset x; \\\n\there=`pwd`; \\\n\tlist='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\tshift; \\\n\tif test -z \"$(ETAGS_ARGS)$$*$$unique\"; then :; else \\\n\t  test -n \"$$unique\" || unique=$$empty_fix; \\\n\t  if test $$# -gt 0; then \\\n\t    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \\\n\t      \"$$@\" $$unique; \\\n\t  else \\\n\t    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \\\n\t      $$unique; \\\n\t  fi; \\\n\tfi\nctags: CTAGS\nCTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \\\n\t\t$(TAGS_FILES) $(LISP)\n\tlist='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \\\n\tunique=`for i in $$list; do \\\n\t    if test -f \"$$i\"; then echo $$i; else echo $(srcdir)/$$i; fi; \\\n\t  done | \\\n\t  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \\\n\t      END { if (nonempty) { for (i in files) print i; }; }'`; \\\n\ttest -z \"$(CTAGS_ARGS)$$unique\" \\\n\t  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \\\n\t     $$unique\n\nGTAGS:\n\there=`$(am__cd) $(top_builddir) && pwd` \\\n\t  && $(am__cd) $(top_srcdir) \\\n\t  && gtags -i $(GTAGS_ARGS) \"$$here\"\n\ndistclean-tags:\n\t-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags\n\ndistdir: $(DISTFILES)\n\t@srcdirstrip=`echo \"$(srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\ttopsrcdirstrip=`echo \"$(top_srcdir)\" | sed 's/[].[^$$\\\\*]/\\\\\\\\&/g'`; \\\n\tlist='$(DISTFILES)'; \\\n\t  dist_files=`for file in $$list; do echo $$file; done | \\\n\t  sed -e \"s|^$$srcdirstrip/||;t\" \\\n\t      -e \"s|^$$topsrcdirstrip/|$(top_builddir)/|;t\"`; \\\n\tcase $$dist_files in \\\n\t  */*) $(MKDIR_P) `echo \"$$dist_files\" | \\\n\t\t\t   sed '/\\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \\\n\t\t\t   sort -u` ;; \\\n\tesac; \\\n\tfor file in $$dist_files; do \\\n\t  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \\\n\t  if test -d $$d/$$file; then \\\n\t    dir=`echo \"/$$file\" | sed -e 's,/[^/]*$$,,'`; \\\n\t    if test -d \"$(distdir)/$$file\"; then \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \\\n\t      cp -fpR $(srcdir)/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t      find \"$(distdir)/$$file\" -type d ! -perm -700 -exec chmod u+rwx {} \\;; \\\n\t    fi; \\\n\t    cp -fpR $$d/$$file \"$(distdir)$$dir\" || exit 1; \\\n\t  else \\\n\t    test -f \"$(distdir)/$$file\" \\\n\t    || cp -p $$d/$$file \"$(distdir)/$$file\" \\\n\t    || exit 1; \\\n\t  fi; \\\n\tdone\ncheck-am: all-am\ncheck: check-am\nall-am: Makefile $(PROGRAMS)\ninstalldirs:\n\tfor dir in \"$(DESTDIR)$(bindir)\"; do \\\n\t  test -z \"$$dir\" || $(MKDIR_P) \"$$dir\"; \\\n\tdone\ninstall: install-am\ninstall-exec: install-exec-am\ninstall-data: install-data-am\nuninstall: uninstall-am\n\ninstall-am: all-am\n\t@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am\n\ninstallcheck: installcheck-am\ninstall-strip:\n\tif test -z '$(STRIP)'; then \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t      install; \\\n\telse \\\n\t  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" \\\n\t    install_sh_PROGRAM=\"$(INSTALL_STRIP_PROGRAM)\" INSTALL_STRIP_FLAG=-s \\\n\t    \"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'\" install; \\\n\tfi\nmostlyclean-generic:\n\nclean-generic:\n\ndistclean-generic:\n\t-test -z \"$(CONFIG_CLEAN_FILES)\" || rm -f $(CONFIG_CLEAN_FILES)\n\t-test . = \"$(srcdir)\" || test -z \"$(CONFIG_CLEAN_VPATH_FILES)\" || rm -f $(CONFIG_CLEAN_VPATH_FILES)\n\nmaintainer-clean-generic:\n\t@echo \"This command is intended for maintainers to use\"\n\t@echo \"it deletes files that may require special tools to rebuild.\"\nclean: clean-am\n\nclean-am: clean-binPROGRAMS clean-generic mostlyclean-am\n\ndistclean: distclean-am\n\t-rm -rf ./$(DEPDIR)\n\t-rm -f Makefile\ndistclean-am: clean-am distclean-compile distclean-generic \\\n\tdistclean-tags\n\ndvi: dvi-am\n\ndvi-am:\n\nhtml: html-am\n\nhtml-am:\n\ninfo: info-am\n\ninfo-am:\n\ninstall-data-am:\n\ninstall-dvi: install-dvi-am\n\ninstall-dvi-am:\n\ninstall-exec-am: install-binPROGRAMS\n\ninstall-html: install-html-am\n\ninstall-html-am:\n\ninstall-info: install-info-am\n\ninstall-info-am:\n\ninstall-man:\n\ninstall-pdf: install-pdf-am\n\ninstall-pdf-am:\n\ninstall-ps: install-ps-am\n\ninstall-ps-am:\n\ninstallcheck-am:\n\nmaintainer-clean: maintainer-clean-am\n\t-rm -rf ./$(DEPDIR)\n\t-rm -f Makefile\nmaintainer-clean-am: distclean-am maintainer-clean-generic\n\nmostlyclean: mostlyclean-am\n\nmostlyclean-am: mostlyclean-compile mostlyclean-generic\n\npdf: pdf-am\n\npdf-am:\n\nps: ps-am\n\nps-am:\n\nuninstall-am: uninstall-binPROGRAMS\n\n.MAKE: install-am install-strip\n\n.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \\\n\tclean-generic ctags distclean distclean-compile \\\n\tdistclean-generic distclean-tags distdir dvi dvi-am html \\\n\thtml-am info info-am install install-am install-binPROGRAMS \\\n\tinstall-data install-data-am install-dvi install-dvi-am \\\n\tinstall-exec install-exec-am install-html install-html-am \\\n\tinstall-info install-info-am install-man install-pdf \\\n\tinstall-pdf-am install-ps install-ps-am install-strip \\\n\tinstallcheck installcheck-am installdirs maintainer-clean \\\n\tmaintainer-clean-generic mostlyclean mostlyclean-compile \\\n\tmostlyclean-generic pdf pdf-am ps ps-am tags uninstall \\\n\tuninstall-am uninstall-binPROGRAMS\n\n\nsub-func.o: sub-func.c ../include/sub.h ../include/sub-o.h\ninterface.o: interface.c ../include/sub.h\nsub-output.o: sub-output.c ../include/sub.h\nsub.o: sub.c ../include/sub.h ../include/sub-o.h\n\n# Tell versions [3.59,3.63) of GNU make to not export all variables.\n# Otherwise a system limit (for SysV at least) may be exceeded.\n.NOEXPORT:\n"
  },
  {
    "path": "src/interface.c",
    "content": "/*\n * sipcalc, interface.c\n * \n * $Id: interface.c,v 1.14 2003/03/19 12:28:15 simius Exp $\n * \n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *  \n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nstatic const char rcsid[] = \"$Id: interface.c,v 1.14 2003/03/19 12:28:15 simius Exp $\";\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/ioctl.h>\n#include <string.h>\n#include <netinet/in.h>\n#include <unistd.h>\n/*\n * For SIOCGIFCONF and friends on Solaris.\n */\n#ifdef HAVE_SYS_SOCKIO_H\n#include <sys/sockio.h>\n#endif\n#include \"sub.h\"\n\nstruct if_info *\nnew_if (struct if_info *ifarg_cur)\n{\n\tstruct if_info *n_if;\n\n\tifarg_cur->next = (struct if_info *) malloc (sizeof (struct if_info));\n\tn_if = ifarg_cur->next;\n\tn_if->next = NULL;\n\tbzero ((char *) n_if->name, IFNAMSIZ + 1);\n\tsafe_bzero (n_if->p_v4addr);\n\tsafe_bzero (n_if->p_v4nmask);\n\tsafe_bzero (n_if->errorstr);\n\tsafe_bzero (n_if->cmdstr);\n\tn_if->type = 0;\n\n\treturn n_if;\n}\n\nvoid\nfree_if (struct if_info *if_cur)\n{\n\tstruct if_info *if_old;\n\n\twhile (if_cur) {\n\t\tif_old = if_cur;\n\t\tif_cur = if_cur->next;\n\t\tfree (if_old);\n\t}\n}\n\nstruct if_info *\nget_if_ext ()\n{\n\tint sd, size, prev_size, len, ifreq_sum;\n\tstruct ifreq *ifr, ifr_stat;\n\tstruct ifconf ifc;\n\tchar *buf, *ptr;\n\tstruct if_info *if_start, *if_cur;\n\tstruct sockaddr_in *sin;\n\n\tif ((sd = socket (AF_INET, SOCK_DGRAM, 0)) < 0) {\n\t\tperror (\"socket\");\n\t\treturn NULL;\n\t};\n\n\tprev_size = 0;\n\tsize = 5 * sizeof (struct ifreq);\n\tfor (;;) {\n\t\tif (!(buf = malloc (size))) {\n\t\t\tperror (\"malloc\");\n\t\t\treturn NULL;\n\t\t}\n\t\tifc.ifc_len = size;\n\t\tifc.ifc_buf = buf;\n\t\tif (ioctl (sd, SIOCGIFCONF, &ifc) < 0) {\n\t\t\tif (errno != EINVAL || prev_size) {\n\t\t\t\tperror (\"ioctl\");\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t} else {\n\t\t\tif (ifc.ifc_len == prev_size)\n\t\t\t\tbreak;\n\t\t\tprev_size = ifc.ifc_len;\n\t\t}\n\t\tsize += 5 * sizeof (struct ifreq);\n\t\tfree (buf);\n\t}\n\n\tif_cur = NULL;\n\tif_start = NULL;\n\tptr = buf;\n\tlen = 0;\n\tifreq_sum = 0;\n\twhile (ptr < buf + ifc.ifc_len) {\n\t\tif (!if_start) {\n\t\t\tif_cur = if_start =\n\t\t\t    (struct if_info *) malloc (sizeof (struct if_info));\n\t\t\tif_cur->next = NULL;\n\t\t} else {\n\t\t\tif_cur->next =\n\t\t\t    (struct if_info *) malloc (sizeof (struct if_info));\n\t\t\tif_cur = if_cur->next;\n\t\t\tif_cur->next = NULL;\n\t\t}\n\n\t\tifr = (struct ifreq *) ptr;\n\n\t\twhile ((ptr < buf + ifc.ifc_len) && ifr\n\t\t       && ifr->ifr_addr.sa_family != AF_INET) {\n/*\n * This is how it's done in W. Richard Stevens, Unix Network Programming\n * Volume 1 Second Edition. This doesnt work on certain 64bit machines\n * (linux - alpha). Hopefully the version below works everywhere.\n *\n#ifdef HAVE_SA_LEN\n\t\t\tif(ifr->ifr_addr.sa_len > sizeof(struct sockaddr))\n\t\t\t\tlen=ifr->ifr_addr.sa_len+sizeof(ifr->ifr_name);\n\t\t\telse\n\t\t\t\tlen=sizeof(struct sockaddr)+sizeof(ifr->ifr_name);\n#else\n\t\t\tlen=sizeof(struct sockaddr)+sizeof(ifr->ifr_name);\n#endif\n*/\n#ifdef HAVE_SA_LEN\n\t\t\tif ((ifr->ifr_addr.sa_len > sizeof (struct sockaddr)) &&\n\t\t\t    ifr->ifr_addr.sa_len >=\n\t\t\t    (sizeof (struct ifreq) - sizeof (ifr->ifr_name)))\n\t\t\t\tlen =\n\t\t\t\t    ifr->ifr_addr.sa_len +\n\t\t\t\t    sizeof (ifr->ifr_name);\n\t\t\telse\n\t\t\t\tlen = sizeof (struct ifreq);\n#else\n\t\t\tlen = sizeof (struct ifreq);\n#endif\n\t\t\tptr += len;\n\t\t\tifr = (struct ifreq *) ptr;\n\t\t}\n\n\t\tif (!ifr || ptr >= buf + ifc.ifc_len)\n\t\t\tbreak;\n\n\t\t/*\n\t\t * We don't know if ifr->ifr_name is NULL terminated.\n\t\t */\n\t\tbzero ((char *) if_cur->name, IFNAMSIZ + 1);\n\t\tstrncpy (if_cur->name, ifr->ifr_name, IFNAMSIZ);\n\t\tsin = (struct sockaddr_in *) &ifr->ifr_addr;\n\t\tif_cur->v4ad.n_haddr = htonl (sin->sin_addr.s_addr);\n\t\tifr_stat = *ifr;\n\n\t\tioctl (sd, SIOCGIFFLAGS, &ifr_stat);\n\t\tif_cur->flags = ifr_stat.ifr_flags;\n\n\t\t/*\n\t\t * *BSD's struct ifreq doesn't containt struct sockaddr\n\t\t * ifru_netmask, but using ifru_addr should hopefully\n\t\t * be ok on all platforms (ifr_ifru being a union and all).\n\t\t */\n\t\tioctl (sd, SIOCGIFNETMASK, &ifr_stat);\n\t\tsin = (struct sockaddr_in *) &ifr_stat.ifr_addr;\n\t\tif_cur->v4ad.n_nmask = htonl (sin->sin_addr.s_addr);\n\n#ifdef SIOCGIFBRDADDR\n\t\tif ((if_cur->flags & IFF_BROADCAST) == IFF_BROADCAST) {\n\t\t\tioctl (sd, SIOCGIFBRDADDR, &ifr_stat);\n\t\t\tsin = (struct sockaddr_in *) &ifr_stat.ifr_broadaddr;\n\t\t\tif_cur->v4ad.i_broadcast = htonl (sin->sin_addr.s_addr);\n\t\t}\n#endif\n\n#ifdef HAVE_SA_LEN\n\t\tif ((ifr->ifr_addr.sa_len > sizeof (struct sockaddr)) &&\n\t\t    ifr->ifr_addr.sa_len >=\n\t\t    (sizeof (struct ifreq) - sizeof (ifr->ifr_name)))\n\t\t\tlen = ifr->ifr_addr.sa_len + sizeof (ifr->ifr_name);\n\t\telse\n\t\t\tlen = sizeof (struct ifreq);\n#else\n\t\tlen = sizeof (struct ifreq);\n#endif\n\t\tptr += len;\n\t}\n\n\tfree (buf);\n\n\treturn if_start;\n}\n"
  },
  {
    "path": "src/sub-func.c",
    "content": "/*\n * sipcalc, sub-func.c\n * \n * $Id: sub-func.c,v 1.28 2003/03/19 12:28:15 simius Exp $\n * \n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *  \n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nstatic const char rcsid[] = \"$Id: sub-func.c,v 1.28 2003/03/19 12:28:15 simius Exp $\";\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n#ifdef HAVE_NETDB_H\n#include <netdb.h>\n#endif\n#ifdef HAVE_CTYPE_H\n#include <ctype.h>\n#endif\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include \"sub.h\"\n#include \"sub-o.h\"\n\nint\ncount (char *buf, char ch)\n{\n\tint x, y;\n\n\ty = 0;\n\tfor (x = 0; x < strlen (buf); x++)\n\t\tif (buf[x] == ch)\n\t\t\ty++;\n\n\treturn y;\n}\n\n/*\n * 0 error\n * 1 normal\n */\nint\nvalidate_v4addr (char *addr)\n{\n\tint x, y, z, m;\n\tchar buf[16];\n\n\tif (strlen (addr) < 7 || strlen (addr) > 15)\n\t\treturn 0;\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (addr)) {\n\t\tif (addr[x] == '.')\n\t\t\ty++;\n\t\tx++;\n\t}\n\tif (y != 3)\n\t\treturn 0;\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (addr)) {\n\t\tz = 0;\n\t\ty = 0;\n\t\twhile (z < strlen (V4ADDR_VAL) && !y) {\n\t\t\tif (addr[x] == V4ADDR_VAL[z])\n\t\t\t\ty = 1;\n\t\t\tz++;\n\t\t}\n\t\tif (!y)\n\t\t\treturn 0;\n\t\tx++;\n\t}\n\n\tif (addr[0] == '.' || addr[strlen (addr) - 1] == '.')\n\t\treturn 0;\n\n\tx = 0;\n\twhile (x < (strlen (addr) - 1)) {\n\t\tif (addr[x] == '.' && addr[x + 1] == '.')\n\t\t\treturn 0;\n\t\tx++;\n\t}\n\n\ty = 0;\n\tfor (x = 0; x < 4; x++) {\n\t\tz = 0;\n\t\tsafe_bzero (buf);\n\t\twhile (addr[y] != '.' && y < strlen (addr)) {\n\t\t\tbuf[z] = addr[y];\n\t\t\ty++;\n\t\t\tz++;\n\t\t}\n\t\tif (z > 3)\n\t\t\treturn 0;\n\t\tm = atoi (buf);\n\t\tif (m < 0 || m > 255)\n\t\t\treturn 0;\n\t\ty++;\n\t};\n\n\treturn 1;\n}\n\n/*\n * 0 error\n * 1 normal\n * 2 /x\n * 3 hex\n */\nint\nvalidate_netmask (char *in_addr)\n{\n\tint x, y, z, m;\n\tchar addr[16];\n\tchar *sl;\n\tu_int32_t sm;\n\n\tif (strlen (in_addr) > 18)\n\t\treturn 0;\n\n\tx = 0;\n\ty = 0;\n\tz = 0;\n\twhile (x < strlen (in_addr) && !y) {\n\t\tif (!isxdigit (in_addr[x]) && in_addr[x] != 'x'\n\t\t    && in_addr[x] != 'X')\n\t\t\ty = 1;\n\t\tif (in_addr[x] == 'x' || in_addr[x] == 'X') {\n\t\t\tz++;\n\t\t\ty = 0;\n\t\t}\n\t\tx++;\n\t}\n\n\tx = 0;\n\tif (!y && z == 1) {\n\t\tx = 0;\n\t\tif (in_addr[0] == 'x' || in_addr[0] == 'X')\n\t\t\tx = 1;\n\t\tif (!x) {\n\t\t\tif (in_addr[0] == '0'\n\t\t\t    && (in_addr[1] == 'x' || in_addr[1] == 'X'))\n\t\t\t\tx = 1;\n\t\t}\n\t}\n\tif (x == 1)\n\t\treturn 3;\n\n\tsafe_bzero (addr);\n\tif (strstr (in_addr, \"/\")) {\n\t\tx = 0;\n\t\twhile (in_addr[x] != '/' && x < 15) {\n\t\t\taddr[x] = in_addr[x];\n\t\t\tx++;\n\t\t}\n\t} else {\n\t\tsafe_strncpy (addr, in_addr);\n\t}\n\n\t/*\n\t * This also calls validate_v4addr.\n\t */\n\tif (quadtonum (addr, &sm))\n\t\treturn 0;\n\n\tif (!(sl = strstr (in_addr, \"/\"))) {\n\t\ty = 0;\n\t\tfor (x = 0; x < 32; x++) {\n\t\t\tif (!y && !((sm >> (31 - x)) & 1))\n\t\t\t\ty = 1;\n\t\t\tif (y == 1 && ((sm >> (31 - x)) & 1))\n\t\t\t\ty = 2;\n\t\t}\n\t\tif (y == 2)\n\t\t\treturn -1;\n\n\t\t/*\n\t\t * valid\n\t\t */\n\t\treturn 1;\n\t}\n\n\tsl++;\n\tif (strlen (sl) < 1 || strlen (sl) > 2)\n\t\treturn 0;\n\n\tif (sl[0] == '.' || sl[1] == '.')\n\t\treturn 0;\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (sl)) {\n\t\tz = 0;\n\t\ty = 0;\n\t\twhile (z < strlen (V4ADDR_VAL) && !y) {\n\t\t\tif (sl[x] == V4ADDR_VAL[z])\n\t\t\t\ty = 1;\n\t\t\tz++;\n\t\t}\n\t\tif (!y)\n\t\t\treturn 0;\n\t\tx++;\n\t}\n\n\tm = atoi (sl);\n\tif (m < 0 || m > 32)\n\t\treturn 0;\n\n\treturn 2;\n}\n\nint\ngetsplitnumv4 (char *buf, u_int32_t * splitmask)\n{\n\tint x, y;\n\tu_int32_t sm;\n\n\tif (strlen (buf) < 1)\n\t\treturn -1;\n\n\tif (strlen (buf) < 4) {\n\t\tif (buf[0] == '/')\n\t\t\tbuf++;\n\t\ty = atoi (buf);\n\t\tif (y < 1 || y > 32)\n\t\t\treturn -1;\n\t\tsm = 0;\n\t\tfor (x = 0; x < y; x++)\n\t\t\tsm = sm | (1 << (31 - x));\n\t} else {\n\t\tif (!strstr (buf, \".\"))\n\t\t\tsm = strtoul (buf, (char **) NULL, 16);\n\t\telse {\n\t\t\tif (quadtonum (buf, &sm))\n\t\t\t\treturn -1;\n\t\t}\n\t}\n\ty = 0;\n\tfor (x = 0; x < 32; x++) {\n\t\tif (!y && !((sm >> (31 - x)) & 1))\n\t\t\ty = 1;\n\t\tif (y == 1 && ((sm >> (31 - x)) & 1))\n\t\t\ty = 2;\n\t}\n\tif (y == 2)\n\t\treturn -1;\n\n\t*splitmask = sm;\n\n\treturn 0;\n}\n\nint\ngetsplitnumv6 (char *buf, struct sip_in6_addr *splitmask, int *v6splitnum)\n{\n\tint x, y;\n\n\tif (strlen (buf) < 1)\n\t\treturn -1;\n\tif (strlen (buf) > 4)\n\t\treturn -1;\n\n\tif (buf[0] == '/')\n\t\tbuf++;\n\ty = atoi (buf);\n\tif (y < 1 || y > 128)\n\t\treturn -1;\n\t*v6splitnum = y;\n\tx = v6masktonum (buf, &y, splitmask);\n\n\treturn 0;\n}\n\nint\nquadtonum (char *quad, u_int32_t * num)\n{\n\tchar buf[128];\n\tint x, y, z;\n\n\tif (!validate_v4addr (quad))\n\t\treturn -1;\n\n\tsafe_bzero (buf);\n\tx = 0;\n\twhile (quad[x] != '.') {\n\t\tbuf[x] = quad[x];\n\t\tx++;\n\t}\n\t*num = 0;\n\tx++;\n\tfor (y = 0; y < 4; y++) {\n\t\tz = atoi (buf);\n\t\tif (z > 255 || z < 0)\n\t\t\treturn -1;\n\t\t*num = *num | (z << (8 * (3 - y)));\n\t\tsafe_bzero (buf);\n\t\tz = 0;\n\t\twhile (quad[x] != '.' && quad[x] != '\\0' && x < strlen (quad)) {\n\t\t\tbuf[z] = quad[x];\n\t\t\tx++;\n\t\t\tz++;\n\t\t}\n\t\tx++;\n\t}\n\n\treturn 0;\n}\n\nchar *\nnumtoquad (u_int32_t num)\n{\n\tint a[4], x;\n\tstatic char quad[17];\n\n\tfor (x = 0; x < 4; x++)\n\t\ta[x] = num >> (8 * (3 - x)) & 0xff;\n\tsafe_bzero (quad);\n\tsafe_snprintf (quad, \"%d.%d.%d.%d\", a[0], a[1], a[2], a[3]);\n\n\treturn quad;\n}\n\nchar *\nnumtobitmap (u_int32_t num)\n{\n\tstatic char bitmap[36];\n\tint x, y, z;\n\n\tsafe_bzero (bitmap);\n\ty = 1;\n\tz = 0;\n\tfor (x = 0; x < 32; x++) {\n\t\tif (!((num >> (31 - x)) & 1))\n\t\t\tbitmap[z] = '0';\n\t\telse\n\t\t\tbitmap[z] = '1';\n\t\tif (y == 8 && z < 34) {\n\t\t\tz++;\n\t\t\tbitmap[z] = '.';\n\t\t\ty = 0;\n\t\t}\n\t\ty++;\n\t\tz++;\n\t}\n\n\treturn bitmap;\n}\n\nint\nparse_addr (struct if_info *ifi)\n{\n\tchar buf[128], buf2[128];\n\tchar *s_find;\n\tint x, y, z;\n\n\tsafe_bzero (buf);\n\tsafe_bzero (buf2);\n\tifi->v4ad.n_nmaskbits = 0;\n\n\t/*\n\t * netmask\n\t */\n\tif (ifi->p_v4nmask[0] == '\\0') {\n\t\t/*\n\t\t * \"/netmask\"\n\t\t */\n\t\tif (!(s_find = strstr (ifi->p_v4addr, \"/\"))) {\n\t\t\tifi->v4ad.n_nmask = 0xffffffff;\n\t\t\tifi->v4ad.n_nmaskbits = 32;\n\t\t} else {\n\t\t\t*s_find = '\\0';\n\t\t\ts_find++;\n\t\t\tif (!*s_find)\n\t\t\t\treturn -1;\n\t\t\tif (strlen (s_find) > 2)\n\t\t\t\treturn -2;\n\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\twhile (x < strlen (s_find)) {\n\t\t\t\ty = 0;\n\t\t\t\tz = 0;\n\t\t\t\twhile (z < strlen (NETMASK_VAL) && !y) {\n\t\t\t\t\tif (s_find[x] == NETMASK_VAL[z])\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\tz++;\n\t\t\t\t}\n\t\t\t\tif (!y)\n\t\t\t\t\treturn -2;\n\t\t\t\tx++;\n\t\t\t}\n\n\t\t\tbuf[0] = *s_find;\n\t\t\t*s_find = '\\0';\n\t\t\ts_find++;\n\t\t\tif (*s_find) {\n\t\t\t\tbuf[1] = *s_find;\n\t\t\t\t*s_find = '\\0';\n\t\t\t}\n\n\t\t\tifi->v4ad.n_nmaskbits = atoi (buf);\n\n\t\t\tifi->v4ad.n_nmask = 0;\n\t\t\tfor (x = 0; x < ifi->v4ad.n_nmaskbits; x++)\n\t\t\t\tifi->v4ad.n_nmask =\n\t\t\t\t    ifi->v4ad.n_nmask | (1 << (31 - x));\n\t\t}\n\t} else {\n\t\t/*\n\t\t * hex netmask\n\t\t */\n\t\tif (!strstr (ifi->p_v4nmask, \".\"))\n\t\t\tifi->v4ad.n_nmask =\n\t\t\t    strtoul (ifi->p_v4nmask, (char **) NULL, 16);\n\t\t/*\n\t\t * \"normal\" netmask\n\t\t */\n\t\telse {\n\t\t\tif (quadtonum (ifi->p_v4nmask, &ifi->v4ad.n_nmask))\n\t\t\t\treturn -2;\n\t\t}\n\t}\n\n\tif (ifi->v4ad.n_nmaskbits < 0 || ifi->v4ad.n_nmaskbits > 32)\n\t\treturn -2;\n\n\t/*\n\t * host address\n\t */\n\tif (quadtonum (ifi->p_v4addr, &ifi->v4ad.n_haddr))\n\t\treturn -1;\n\n\treturn 0;\n}\n\n/*\n * return\n * 0  ok\n * -1 invalid address\n * -2 invalid netmask\n */\nint\nget_addrv4 (struct if_info *ifi)\n{\n\tint x, y;\n\n\tx = 0;\n\tif (!ifi->name[0])\n\t\tx = parse_addr (ifi);\n\n\tif (x)\n\t\treturn x;\n\n\t/*\n\t * count netmask bits\n\t */\n\tifi->v4ad.n_nmaskbits = 0;\n\tfor (x = 0; x < 32; x++) {\n\t\tif ((ifi->v4ad.n_nmask >> x) & 1)\n\t\t\tifi->v4ad.n_nmaskbits++;\n\t}\n\tif (ifi->v4ad.n_nmaskbits < 0 || ifi->v4ad.n_nmaskbits > 32)\n\t\treturn -2;\n\n\t/*\n\t * validate netmask\n\t */\n\ty = 0;\n\tfor (x = 0; x < 32; x++) {\n\t\tif (!y && !((ifi->v4ad.n_nmask >> (31 - x)) & 1))\n\t\t\ty = 1;\n\t\tif (y == 1 && ((ifi->v4ad.n_nmask >> (31 - x)) & 1))\n\t\t\ty = 2;\n\t}\n\tif (y == 2)\n\t\treturn -2;\n\n\t/*\n\t * network class, class remark and classful netmask\n\t */\n\tsafe_bzero (ifi->v4ad.class_remark);\n\tx = ifi->v4ad.n_haddr >> 24;\n\tifi->v4ad.n_cnaddr = 0;\n\tif (!(x & 0x80)) {\n\t\tifi->v4ad.class = 'A';\n\t\tifi->v4ad.n_cnmask = 0xff000000;\n\t}\n\tif ((x & 0xc0) == 0x80) {\n\t\tifi->v4ad.class = 'B';\n\t\tifi->v4ad.n_cnmask = 0xffff0000;\n\t}\n\tif ((x & 0xe0) == 0xc0) {\n\t\tifi->v4ad.class = 'C';\n\t\tifi->v4ad.n_cnmask = 0xffffff00;\n\t}\n\tif ((x & 0xf0) == 0xe0) {\n\t\tifi->v4ad.class = 'D';\n\t\tsafe_snprintf (ifi->v4ad.class_remark, \" (multicast network)\");\n\t\tifi->v4ad.n_cnmask = ifi->v4ad.n_nmask;\n\t}\n\tif ((x & 0xf8) == 0xf0) {\n\t\tifi->v4ad.class = 'E';\n\t\tsafe_snprintf (ifi->v4ad.class_remark,\n\t\t\t  \" (reserved for future use)\");\n\t\tifi->v4ad.n_cnmask = ifi->v4ad.n_nmask;\n\t}\n\tif (ifi->v4ad.class == '\\0') {\n\t\tifi->v4ad.n_cnmask = ifi->v4ad.n_nmask;\n\t\tsafe_snprintf (ifi->v4ad.class_remark, \"Nonexistant\");\n\t}\n\n\t/*\n\t * network address (classful + cidr)\n\t */\n\tifi->v4ad.n_naddr = ifi->v4ad.n_haddr & ifi->v4ad.n_nmask;\n\tifi->v4ad.n_cnaddr = ifi->v4ad.n_haddr & ifi->v4ad.n_cnmask;\n\n\t/*\n\t * cidr broadcast address\n\t */\n\tifi->v4ad.n_broadcast =\n\t    0xffffffff - ifi->v4ad.n_nmask + ifi->v4ad.n_naddr;\n\n\treturn 0;\n}\n\n/*\n * return\n * 0  ok\n * -1 invalid address\n * -2 invalid netmask\n */\nint\nget_addrv6 (struct if_info *ifi)\n{\n\tint x;\n\n\tx = mk_ipv6addr (&ifi->v6ad, ifi->p_v6addr);\n\tif (x < 0)\n\t\treturn -1;\n\n\treturn 0;\n}\n\nint\nsplit_ipv6addr (char *addr, struct ipv6_split *spstr)\n{\n\tchar *split;\n\tint x, y, z;\n\n\tsplit = strstr (addr, \"/\");\n\tif (split && (count (addr, '/') == 1)) {\n\t\tif (strlen (split) > 1 && strlen (split) < 5) {\n\t\t\tsplit++;\n\t\t\tsafe_strncpy (spstr->nmask, split);\n\t\t}\n\t}\n\n\tx = 0;\n\ty = 0;\n\tsplit = strstr (addr, \".\");\n\tif (split)\n\t\tx = strlen (split);\n\tsplit = strstr (addr, \":\");\n\tif (split)\n\t\ty = strlen (split);\n\tif (x < y)\n\t\tx = 1;\n\telse\n\t\tx = 0;\n\n\tif (count (addr, '.') == 3 && x) {\n\t\tsplit = strstr (addr, \".\");\n\t\tx = strlen (addr) - strlen (split);\n\t\twhile (addr[x] != ':')\n\t\t\tx--;\n\t\tx++;\n\t\tsplit = strstr (addr, \"/\");\n\t\tif (split)\n\t\t\ty = strlen (addr) - strlen (split);\n\t\telse\n\t\t\ty = strlen (addr);\n\t\tif ((y - x >= 7) && (y - x <= 15)) {\n\t\t\tfor (z = 0; z < y - x; z++)\n\t\t\t\tspstr->ipv4addr[z] = addr[x + z];\n\t\t}\n\t}\n\n\tx = strlen (addr) - (strlen (spstr->ipv4addr) + strlen (spstr->nmask));\n\tif (strlen (spstr->nmask) > 0)\n\t\tx--;\n\tif (x > 1 && x < 40)\n\t\tstrncpy (spstr->ipv6addr, addr, x);\n\n\treturn 0;\n}\n\nint\nvalidate_s_v6addr (char *addr, int type)\n{\n\tint x, y, z;\n\tint numcolon;\n\tint compressed;\n\n\tif (strlen (addr) < 2)\n\t\treturn -1;\n\n\tif (strlen (addr) > 39)\n\t\treturn -1;\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (addr)) {\n\t\ty = 0;\n\t\tz = 0;\n\t\twhile (z < strlen (V6ADDR_VAL) && !y) {\n\t\t\tif (addr[x] == V6ADDR_VAL[z])\n\t\t\t\ty = 1;\n\t\t\tz++;\n\t\t}\n\t\tif (!y)\n\t\t\treturn -1;\n\t\tx++;\n\t}\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (addr)) {\n\t\tif (addr[x] == ':')\n\t\t\ty++;\n\t\telse\n\t\t\ty = 0;\n\t\tif (y == 3)\n\t\t\treturn -1;\n\n\t\tx++;\n\t}\n\n\tif (addr[0] == ':' && addr[1] != ':')\n\t\treturn -1;\n\tif (type == V6TYPE_STANDARD && addr[strlen (addr) - 1] == ':'\n\t    && addr[strlen (addr) - 2] != ':')\n\t\treturn -1;\n\n\tnumcolon = 0;\n\tfor (x = 0; x < strlen (addr); x++) {\n\t\tif (addr[x] == ':')\n\t\t\tnumcolon++;\n\t}\n\n\tcompressed = 0;\n\tx = 0;\n\twhile (x < strlen (addr) - 1) {\n\t\tif (addr[x] == ':' && addr[x + 1] == ':')\n\t\t\tcompressed++;\n\t\tx++;\n\t}\n\n\tif (compressed > 1)\n\t\treturn -1;\n\n\tif (!compressed && numcolon != 7 && type == V6TYPE_STANDARD)\n\t\treturn -1;\n\n\tif (!compressed && numcolon != 6 && type == V6TYPE_V4INV6)\n\t\treturn -1;\n\n\tif (compressed && type == V6TYPE_STANDARD) {\n\t\tif (numcolon > 7)\n\t\t\treturn -1;\n\t}\n\n\tif (compressed && type == V6TYPE_V4INV6) {\n\t\tif (numcolon > 6)\n\t\t\treturn -1;\n\t}\n\n\ty = 0;\n\tfor (x = 0; x < strlen (addr); x++) {\n\t\tif (addr[x] != ':')\n\t\t\ty++;\n\t\telse\n\t\t\ty = 0;\n\n\t\tif (y > 4)\n\t\t\tbreak;\n\t}\n\n\tif (y > 4)\n\t\treturn -1;\n\n\treturn 0;\n}\n\nint\ngetcolon (char *addr, int pos, int type)\n{\n\tint x, y;\n\tint compressed;\n\tint cstart, cend;\n\tint max;\n\tchar str[5];\n\n\tif (type == V6TYPE_STANDARD)\n\t\tmax = 7;\n\tif (type == V6TYPE_V4INV6)\n\t\tmax = 5;\n\n\tcompressed = 0;\n\tx = 0;\n\twhile (x < strlen (addr) - 1) {\n\t\tif (addr[x] == ':' && addr[x + 1] == ':')\n\t\t\tcompressed++;\n\t\tx++;\n\t}\n\n\tif (compressed) {\n\t\tcstart = 0;\n\t\tx = 0;\n\t\twhile (x < strlen (addr) - 1) {\n\t\t\tif (addr[x] == ':' && addr[x + 1] == ':')\n\t\t\t\tbreak;\n\t\t\tif (addr[x] == ':')\n\t\t\t\tcstart++;\n\t\t\tx++;\n\t\t}\n\t\tx += 2;\n\t\tcend = 0;\n\t\twhile (x < strlen (addr)) {\n\t\t\tif (addr[x] == ':')\n\t\t\t\tcend++;\n\t\t\tx++;\n\t\t}\n\t\tif (addr[strlen (addr) - 1] == ':'\n\t\t    && addr[strlen (addr) - 2] != ':')\n\t\t\tcend--;\n\t}\n\n\tif (!compressed) {\n\t\tx = 0;\n\t\ty = 0;\n\t\twhile (x < pos) {\n\t\t\tif (addr[y] == ':')\n\t\t\t\tx++;\n\t\t\ty++;\n\t\t}\n\n\t\tsafe_bzero (str);\n\t\tx = 0;\n\t\twhile (y < strlen (addr) && addr[y] != ':') {\n\t\t\tstr[x] = addr[y];\n\t\t\tx++;\n\t\t\ty++;\n\t\t}\n\t}\n\n\tif (compressed) {\n\t\tsafe_bzero (str);\n\t\tif (pos <= cstart) {\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\twhile (x < pos) {\n\t\t\t\tif (addr[y] == ':')\n\t\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\n\t\t\tx = 0;\n\t\t\twhile (y < strlen (addr) && addr[y] != ':') {\n\t\t\t\tstr[x] = addr[y];\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\n\t\tif ((pos > cstart) && (pos < (max - cend))) {\n\t\t\tstr[0] = '0';\n\t\t}\n\n\t\tif (pos >= (max - cend)) {\n\t\t\ty = 0;\n\t\t\twhile (y < strlen (addr) - 1) {\n\t\t\t\tif (addr[y] == ':' && addr[y + 1] == ':')\n\t\t\t\t\tbreak;\n\t\t\t\ty++;\n\t\t\t}\n\t\t\ty += 2;\n\n\t\t\tx = max - cend;\n\t\t\twhile (x < pos) {\n\t\t\t\tif (addr[y] == ':')\n\t\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\n\t\t\tsafe_bzero (str);\n\t\t\tx = 0;\n\t\t\twhile (y < strlen (addr) && addr[y] != ':') {\n\t\t\t\tstr[x] = addr[y];\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif (str[0] == '\\0')\n\t\tstr[0] = '0';\n\tx = strtol (str, (char **) NULL, 16);\n\n\treturn x;\n}\n\nint\nv6addrtonum (struct ipv6_split spstr, struct v6addr *in6_addr, int type)\n{\n\tint colon;\n\tint x, y, z, n;\n\tchar buf[128];\n\n\tcolon = 0;\n\tif (type == V6TYPE_STANDARD)\n\t\tcolon = 8;\n\tif (type == V6TYPE_V4INV6)\n\t\tcolon = 6;\n\n\tfor (x = 0; x < 4; x++) {\n\t\tin6_addr->haddr.sip6_addr32[x] = 0;\n\t}\n\n\tfor (x = 0; x < colon; x++) {\n\t\ty = getcolon (spstr.ipv6addr, x, type);\n\t\tin6_addr->haddr.sip6_addr16[x] = y;\n\t}\n\n\tif (type == V6TYPE_V4INV6) {\n\t\tsafe_bzero (buf);\n\t\tx = 0;\n\t\twhile (spstr.ipv4addr[x] != '.') {\n\t\t\tbuf[x] = spstr.ipv4addr[x];\n\t\t\tx++;\n\t\t}\n\t\tx++;\n\t\tfor (y = 0; y < 4; y++) {\n\t\t\tif (y == 1) {\n\t\t\t\tin6_addr->haddr.sip6_addr16[6] =\n\t\t\t\t    (n << 8) | atoi (buf);\n\t\t\t}\n\t\t\tif (y == 3) {\n\t\t\t\tin6_addr->haddr.sip6_addr16[7] =\n\t\t\t\t    (n << 8) | atoi (buf);\n\t\t\t}\n\t\t\tn = atoi (buf);\n\n\t\t\tsafe_bzero (buf);\n\t\t\tz = 0;\n\t\t\twhile (spstr.ipv4addr[x] != '.'\n\t\t\t       && spstr.ipv4addr[x] != '\\0'\n\t\t\t       && x < strlen (spstr.ipv4addr)) {\n\t\t\t\tbuf[z] = spstr.ipv4addr[x];\n\t\t\t\tx++;\n\t\t\t\tz++;\n\t\t\t}\n\t\t\tx++;\n\t\t}\n\t}\n\n\treturn 0;\n}\n\nint\nv6masktonum (char *nmask, int *nmaskbits, struct sip_in6_addr *in6_addr)\n{\n\tint x, y, z;\n\n\tif (nmask[0] == '\\0')\n\t\t*nmaskbits = 128;\n\telse\n\t\t*nmaskbits = atoi (nmask);\n\n\tfor (x = 0; x < 4; x++)\n\t\tin6_addr->sip6_addr32[x] = 0;\n\n\ty = 0;\n\tz = 0;\n\tfor (x = 0; x < *nmaskbits; x++) {\n\t\tin6_addr->sip6_addr16[y] =\n\t\t    in6_addr->sip6_addr16[y] | (1 << (15 - z));\n\t\tz++;\n\t\tif (z == 16) {\n\t\t\tz = 0;\n\t\t\ty++;\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n/*\n * 0 error\n * 1 normal\n */\nint\nvalidate_v6addr (char *addr)\n{\n\tint x;\n\tstruct ipv6_split spstr;\n\n\tsafe_bzero (spstr.ipv6addr);\n\tsafe_bzero (spstr.ipv4addr);\n\tsafe_bzero (spstr.nmask);\n\n\tsplit_ipv6addr (addr, &spstr);\n\n\tif (!spstr.ipv6addr[0])\n\t\treturn 0;\n\n\tx = V6TYPE_STANDARD;\n\tif (spstr.ipv4addr[0])\n\t\tx = V6TYPE_V4INV6;\n\tif (validate_s_v6addr (spstr.ipv6addr, x) < 0) {\n\t\treturn 0;\n\t}\n\tif (spstr.ipv4addr[0]) {\n\t\tif (!validate_v4addr (spstr.ipv4addr)) {\n\t\t\treturn 0;\n\t\t}\n\t}\n\n\treturn 1;\n}\n\nint\nv6addrtoprefix (struct v6addr *in6_addr)\n{\n\tint x;\n\n\tfor (x = 0; x < 8; x++) {\n\t\tin6_addr->prefix.sip6_addr16[x] =\n\t\t    in6_addr->haddr.sip6_addr16[x] & in6_addr->nmask.\n\t\t    sip6_addr16[x];\n\t}\n\n\treturn 0;\n}\n\nint\nv6addrtosuffix (struct v6addr *in6_addr)\n{\n\tint x;\n\n\tfor (x = 0; x < 8; x++) {\n\t\tin6_addr->suffix.sip6_addr16[x] =\n\t\t    in6_addr->haddr.sip6_addr16[x] & (in6_addr->nmask.\n\t\t\t\t\t\t      sip6_addr16[x] ^ 0xffff);\n\t}\n\n\treturn 0;\n}\n\nint\nv6addrtobroadcast (struct v6addr *in6_addr)\n{\n\tint x;\n\n\tfor (x = 0; x < 8; x++) {\n\t\tin6_addr->broadcast.sip6_addr16[x] =\n\t\t    0xffff - in6_addr->nmask.sip6_addr16[x] +\n\t\t    in6_addr->prefix.sip6_addr16[x];\n\t}\n\n\treturn 0;\n}\n\nvoid\nv6_type (struct v6addr *in6_addr)\n{\n\tuint16_t a;\n\n\ta = in6_addr->haddr.sip6_addr16[0];\n\n\tif (a == 0)\n\t\tsafe_snprintf (in6_addr->class_remark, \"Reserved\");\n\tif (a == 2 || a == 3)\n\t\tsafe_snprintf (in6_addr->class_remark,\n\t\t\t  \"Reserved for NSAP Allocation\");\n\tif (a == 4 || a == 5)\n\t\tsafe_snprintf (in6_addr->class_remark,\n\t\t\t  \"Reserved for IPX Allocation\");\n\tif ((a & 0xe000) == 0x2000)\n\t\tsafe_snprintf (in6_addr->class_remark,\n\t\t\t  \"Aggregatable Global Unicast Addresses\");\n\tif ((a | 0x00ff) == 0x00ff)\n\t\tsafe_snprintf (in6_addr->class_remark, \"Reserved\");\n\tif ((a & 0xff00) == 0xff00)\n\t\tsafe_snprintf (in6_addr->class_remark, \"Multicast Addresses\");\n\tif ((a & 0xff80) == 0xfe80)\n\t\tsafe_snprintf (in6_addr->class_remark,\n\t\t\t  \"Link-Local Unicast Addresses\");\n\tif ((a & 0xffc0) == 0xfec0)\n\t\tsafe_snprintf (in6_addr->class_remark,\n\t\t\t  \"Site-Local Unicast Addresses\");\n\n\tif (in6_addr->class_remark[0] == '\\0')\n\t\tsafe_snprintf (in6_addr->class_remark, \"Unassigned\");\n\n\treturn;\n}\n\nvoid\nv6_comment (struct v6addr *in6_addr)\n{\n\tint x, y;\n\n\ty = 0;\n\tfor (x = 0; x < 8; x++) {\n\t\tif (in6_addr->haddr.sip6_addr16[x])\n\t\t\ty = 1;\n\t}\n\tif (!y)\n\t\tsafe_snprintf (in6_addr->comment, \"Unspecified\");\n\n\ty = 0;\n\tfor (x = 0; x < 7; x++) {\n\t\tif (in6_addr->haddr.sip6_addr16[x])\n\t\t\ty = 1;\n\t}\n\tif (!y)\n\t\tif (in6_addr->haddr.sip6_addr16[7] == 1)\n\t\t\tsafe_snprintf (in6_addr->comment, \"Loopback\");\n\n\treturn;\n}\n\nint\nv6verifyv4 (struct sip_in6_addr addr)\n{\n\tint x, y;\n\n\ty = 0;\n\tfor (x = 0; x < 5; x++) {\n\t\tif (addr.sip6_addr16[x])\n\t\t\ty = 1;\n\t}\n\n\tif (!y) {\n\t\tif (!addr.sip6_addr16[5])\n\t\t\treturn 1;\n\t\tif (addr.sip6_addr16[5] == 0xffff)\n\t\t\treturn 2;\n\t}\n\n\treturn 0;\n}\n\nchar *\nget_comp_v6 (struct sip_in6_addr addr)\n{\n\tstatic char outad[44];\n\tchar tmpad[5];\n\tint x, y, z;\n\tint start, num;\n\n\tsafe_bzero (outad);\n\n\tstart = -1;\n\tnum = 0;\n\ty = 0;\n\tz = 0;\n\tfor (x = 0; x < 8; x++) {\n\t\tif (addr.sip6_addr16[x] == 0) {\n\t\t\tif (y == -1)\n\t\t\t\ty = x;\n\t\t\tz++;\n\t\t} else {\n\t\t\tif (z > num && z > 1) {\n\t\t\t\tstart = y;\n\t\t\t\tnum = z;\n\t\t\t}\n\t\t\ty = -1;\n\t\t\tz = 0;\n\t\t}\n\t}\n\n\tif (z > num && z > 1) {\n\t\tstart = y;\n\t\tnum = z;\n\t}\n\n\tfor (x = 0; x < 8; x++) {\n\t\tif (x == start) {\n\t\t\tif (!x)\n\t\t\t\tsafe_strncat (outad, \":\");\n\t\t\tsafe_strncat (outad, \":\");\n\t\t\tx += num - 1;\n\t\t} else {\n\t\t\tsafe_bzero (tmpad);\n\t\t\tsafe_snprintf (tmpad, \"%x\", addr.sip6_addr16[x]);\n\t\t\tsafe_strncat (outad, tmpad);\n\t\t\tif (x != 7)\n\t\t\t\tsafe_strncat (outad, \":\");\n\t\t}\n\t}\n\n\treturn outad;\n}\n\nint\nmk_ipv6addr (struct v6addr *in6_addr, char *addr)\n{\n\tint x, y, z;\n\tstruct ipv6_split spstr;\n\n\tsafe_bzero (spstr.ipv6addr);\n\tsafe_bzero (spstr.ipv4addr);\n\tsafe_bzero (spstr.nmask);\n\n\tsplit_ipv6addr (addr, &spstr);\n\n\tif (!spstr.ipv6addr[0])\n\t\treturn -1;\n\n\tx = V6TYPE_STANDARD;\n\tif (spstr.ipv4addr[0])\n\t\tx = V6TYPE_V4INV6;\n\tif (validate_s_v6addr (spstr.ipv6addr, x) < 0) {\n\t\treturn -1;\n\t}\n\tif (spstr.ipv4addr[0]) {\n\t\tif (!validate_v4addr (spstr.ipv4addr)) {\n\t\t\treturn -1;\n\t\t}\n\t}\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (spstr.nmask)) {\n\t\ty = 0;\n\t\tz = 0;\n\t\twhile (z < strlen (NETMASK_VAL) && !y) {\n\t\t\tif (spstr.nmask[x] == NETMASK_VAL[z])\n\t\t\t\ty = 1;\n\t\t\tz++;\n\t\t}\n\t\tif (!y) {\n\t\t\treturn -1;\n\t\t}\n\t\tx++;\n\t}\n\tx = atoi (spstr.nmask);\n\tif (x < 0 || x > 128) {\n\t\treturn -1;\n\t}\n\n\tif (spstr.ipv4addr[0] == '\\0')\n\t\tin6_addr->type = V6TYPE_STANDARD;\n\telse\n\t\tin6_addr->type = V6TYPE_V4INV6;\n\n\tv6addrtonum (spstr, in6_addr, in6_addr->type);\n\tv6masktonum (spstr.nmask, &in6_addr->nmaskbits, &in6_addr->nmask);\n\tv6addrtoprefix (in6_addr);\n\tv6addrtosuffix (in6_addr);\n\tv6addrtobroadcast (in6_addr);\n\tin6_addr->real_v4 = v6verifyv4 (in6_addr->haddr);\n\n\tsafe_bzero (in6_addr->class_remark);\n\tv6_type (in6_addr);\n\tsafe_bzero (in6_addr->comment);\n\tv6_comment (in6_addr);\n\n\treturn 0;\n}\n\nstruct dnsresp *\nnew_dnsresp (struct dnsresp *d_resp)\n{\n\td_resp->next = (struct dnsresp *) malloc (sizeof (struct dnsresp));\n\td_resp = d_resp->next;\n\td_resp->next = NULL;\n\tsafe_bzero(d_resp->str);\n\td_resp->type = 0;\n\n\treturn d_resp;\n}\n\nvoid\nfree_dnsresp (struct dnsresp *d_resp)\n{\n\tstruct dnsresp *old;\n\n\twhile (d_resp) {\n\t\told = d_resp;\n\t\td_resp = d_resp->next;\n\t\tfree (old);\n\t}\n}\n\n#ifdef HAVE_GETHOSTBYNAME\nchar *\n_resolv_v4_ghbn (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\tstruct hostent *he;\n\tstatic char retaddr[1024];\n\tint x;\n\n\tsafe_bzero (retaddr);\n\n\the = gethostbyname (raddr);\n\tif (!he)\n\t\treturn NULL;\n\n\tif (he->h_addrtype == AF_INET) {\n\t\tsafe_snprintf (retaddr, \"%s%s\", inet_ntoa (*(struct in_addr *) he->h_addr_list[0]), extra);\n\t\tx = 0;\n\t\twhile (he->h_addr_list[x]) {\n\t\t\tsafe_snprintf (d_resp->str, \"%s%s\", inet_ntoa (*(struct in_addr *) he->h_addr_list[x]), extra);\n\t\t\td_resp->type = AF_INET;\n\t\t\tx++;\n\t\t\tif (he->h_addr_list[x])\n\t\t\t\td_resp = new_dnsresp (d_resp);\n\t\t}\n\t}\n\n\tif (retaddr[0] == '\\0')\n\t\treturn NULL;\n\n\treturn retaddr;\n}\n#else\nchar *\n_resolv_v4_ghbn (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\treturn NULL;\n}\n#endif\n\n#if defined(HAVE_GETHOSTBYNAME2) && defined(HAVE_INET_NTOP)\nchar *\n_resolv_v6_ghbn2 (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\tstruct hostent *he;\n\tstatic char retaddr[1024];\n\tchar ip6addr[128];\n\tint x;\n\n\tsafe_bzero (retaddr);\n\n\the = gethostbyname2 (raddr, AF_INET6);\n\tif (!he)\n\t\treturn NULL;\n\n\tif (he->h_addrtype == AF_INET6) {\n\t\tsafe_bzero (ip6addr);\n\t\tsafe_snprintf (retaddr, \"%s%s\", inet_ntop (AF_INET6, he->h_addr_list[0], ip6addr, 128), extra);\n\t\tx = 0;\n\t\twhile (he->h_addr_list[x]) {\n\t\t\tsafe_snprintf (d_resp->str, \"%s%s\", inet_ntop (AF_INET6, he->h_addr_list[x], ip6addr, 128), extra);\n\t\t\td_resp->type = AF_INET6;\n\t\t\tx++;\n\t\t\tif (he->h_addr_list[x])\n\t\t\t\td_resp = new_dnsresp (d_resp);\n\t\t}\n\t}\n\n\tif (retaddr[0] == '\\0')\n\t\treturn NULL;\n\n\treturn retaddr;\n}\n#else\nchar *\n_resolv_v6_ghbn2 (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\treturn NULL;\n}\n#endif\n\n#if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_NTOP)\nchar *\n_resolv_v6_gai (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\tint x;\n\tstruct addrinfo hints;\n\tstruct addrinfo *res, *res_orig;\n\tstruct sockaddr_in6 *sin6;\n\tstatic char retaddr[1024];\n\tchar ip6addr[128];\n\n\tmemset (&hints, 0, sizeof(hints));\n\thints.ai_family = AF_INET6;\n\thints.ai_socktype = 0;\n\thints.ai_flags = AI_CANONNAME;\n\thints.ai_protocol = IPPROTO_TCP;\n\tx = getaddrinfo (raddr, NULL, &hints, &res);\n\tif (x)\n\t\treturn NULL;\n\tif (!res)\n\t\treturn NULL;\n\n\tres_orig = res;\n\twhile (res) {\n\t\tsafe_bzero (ip6addr);\n\t\tif (res->ai_family == PF_INET6) {\n\t\t\tsin6 = (struct sockaddr_in6 *) res->ai_addr;\n\t\t\tsafe_snprintf (retaddr, \"%s%s\", inet_ntop (AF_INET6, &sin6->sin6_addr, ip6addr, 128), extra);\n\t\t\tsafe_snprintf (d_resp->str, \"%s%s\", inet_ntop (AF_INET6, &sin6->sin6_addr, ip6addr, 128), extra);\n\t\t\td_resp->type = AF_INET6;\n\t\t}\n\t\tif (res->ai_next && (res->ai_family == PF_INET || res->ai_family == PF_INET6))\n\t\t\td_resp = new_dnsresp (d_resp);\n\t\tres = res->ai_next;\n\t}\n\n\tfreeaddrinfo (res_orig);\n\n\tif (retaddr[0] == '\\0')\n\t\treturn NULL;\n\n\treturn retaddr;\n}\n#else\nchar *\n_resolv_v6_gai (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\treturn NULL;\n}\n#endif\n\n#if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_NTOP)\nchar *\n_resolv_unspec_gai (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\tint x;\n\tstruct addrinfo hints;\n\tstruct addrinfo *res, *res_orig;\n\tstruct sockaddr_in *sin;\n\tstruct sockaddr_in6 *sin6;\n\tstatic char retaddr[1024];\n\tchar ip6addr[128];\n\n\tmemset (&hints, 0, sizeof(hints));\n\thints.ai_family = AF_UNSPEC;\n\thints.ai_socktype = 0;\n\thints.ai_flags = AI_CANONNAME;\n\thints.ai_protocol = IPPROTO_TCP;\n\tx = getaddrinfo (raddr, NULL, &hints, &res);\n\tif (x)\n\t\treturn NULL;\n\tif (!res)\n\t\treturn NULL;\n\n\tres_orig = res;\n\n\twhile (res) {\n\t\tsafe_bzero (ip6addr);\n\t\tif (res->ai_family == PF_INET) {\n\t\t\tsin = (struct sockaddr_in *) res->ai_addr;\n\t\t\tsafe_snprintf (retaddr, \"%s%s\", inet_ntoa (sin->sin_addr), extra);\n\t\t\tsafe_snprintf(d_resp->str, \"%s%s\", inet_ntoa (sin->sin_addr), extra);\n\t\t\td_resp->type = AF_INET;\n\t\t}\n\t\tif (res->ai_family == PF_INET6) {\n\t\t\tsin6 = (struct sockaddr_in6 *) res->ai_addr;\n\t\t\tsafe_snprintf (retaddr, \"%s%s\", inet_ntop (AF_INET6, &sin6->sin6_addr, ip6addr, 128), extra);\n\t\t\tsafe_snprintf (d_resp->str, \"%s%s\", inet_ntop (AF_INET6, &sin6->sin6_addr, ip6addr, 128), extra);\n\t\t\td_resp->type = AF_INET6;\n\t\t}\n\t\tif (res->ai_next && (res->ai_family == PF_INET || res->ai_family == PF_INET6))\n\t\t\td_resp = new_dnsresp (d_resp);\n\t\tres = res->ai_next;\n\t}\n\n\tfreeaddrinfo (res_orig);\n\n\tif (retaddr[0] == '\\0')\n\t\treturn NULL;\n\n\treturn retaddr;\n}\n#else\nchar *\n_resolv_unspec_gai (char *raddr, struct dnsresp *d_resp, char *extra)\n{\n\treturn NULL;\n}\n#endif\n\nchar *\nresolve_addr (char *addr, int family, struct dnsresp *d_resp)\n{\n\tchar extra[32];\n\tchar *tmpstr;\n\tchar raddr[1024];\n\tstatic char retaddr[1024];\n\tstruct dnsresp *d_resp_tmp;\n\tint f_gethostbyname;\n\tint f_gethostbyname2;\n\tint f_getaddrinfo;\n\tint f_inet_ntop;\n\tint ipv4_cap;\n\tint ipv6_cap;\n\n\tf_gethostbyname = 0;\n\tf_gethostbyname2 = 0;\n\tf_getaddrinfo = 0;\n\tf_inet_ntop = 0;\n\tipv4_cap = 0;\n\tipv6_cap = 0;\n\n#ifdef HAVE_GETHOSTBYNAME\n\tf_gethostbyname = 1;\n#endif\n#ifdef HAVE_GETHOSTBYNAME2\n\tf_gethostbyname2 = 1;\n#endif\n#ifdef HAVE_GETADDRINFO\n\tf_getaddrinfo = 1;\n#endif\n#ifdef HAVE_INET_NTOP\n\tf_inet_ntop = 1;\n#endif\n\n\tif (f_gethostbyname)\n\t\tipv4_cap = 1;\n\n\tif ((f_gethostbyname2 || f_getaddrinfo) && f_inet_ntop)\n\t\tipv6_cap = 1;\n\n\tif (family != PF_INET && family != PF_INET6 && family != PF_UNSPEC)\n\t\treturn NULL;\n\n\tif (family == PF_INET && !ipv4_cap)\n\t\treturn NULL;\n\n\tif (family == PF_INET6 && !ipv6_cap)\n\t\treturn NULL;\n\n\tif (family == PF_UNSPEC && (!ipv4_cap && !ipv6_cap))\n\t\treturn NULL;\n\n\tif (strlen (addr) > 1023)\n\t\treturn NULL;\n\n\tif (family == PF_UNSPEC && !ipv4_cap)\n\t\tfamily = PF_INET6;\n\n\tif (family == PF_UNSPEC && !ipv6_cap)\n\t\tfamily = PF_INET;\n\n\tsafe_bzero (extra);\n\tsafe_bzero (raddr);\n\ttmpstr = strstr (addr, \"/\");\n\tif (tmpstr) {\n\t\tsafe_strncpy (extra, tmpstr);\n\t\tstrncpy (raddr, addr, strlen (addr) - strlen (tmpstr));\n\t}\n\telse {\n\t\ttmpstr = strstr (addr, \" \");\n\t\tif (tmpstr) {\n\t\t\tsafe_strncpy (extra, tmpstr);\n\t\t\tstrncpy (raddr, addr, strlen (addr) - strlen (tmpstr));\n\t\t}\n\t\telse\n\t\t\tsafe_strncpy (raddr, addr);\n\t}\n\n\tsafe_bzero (retaddr);\n\n\tif (family == PF_INET) {\n\t\ttmpstr = _resolv_v4_ghbn (raddr, d_resp, extra);\n\t\tif (!tmpstr)\n\t\t\treturn NULL;\n\t\tsafe_strncpy (retaddr, tmpstr);\n\t\treturn retaddr;\n\t}\n\n\tif (family == PF_INET6) {\n\t\tif (f_getaddrinfo) {\n\t\t\ttmpstr = _resolv_v6_gai (raddr, d_resp, extra);\n\t\t\tif (!tmpstr)\n\t\t\t\treturn NULL;\n\t\t\tsafe_strncpy (retaddr, tmpstr);\n\t\t\treturn retaddr;\n\t\t}\n\n\t\tif (f_gethostbyname2) {\n\t\t\ttmpstr = _resolv_v6_ghbn2 (raddr, d_resp, extra);\n\t\t\tif (!tmpstr)\n\t\t\t\treturn NULL;\n\t\t\tsafe_strncpy (retaddr, tmpstr);\n\t\t\treturn retaddr;\n\t\t}\n\t}\n\n\tif (family == PF_UNSPEC) {\n\t\tif (f_getaddrinfo) {\n\t\t\ttmpstr = _resolv_unspec_gai (raddr, d_resp, extra);\n\t\t\tif (!tmpstr)\n\t\t\t\treturn NULL;\n\t\t\tsafe_strncpy (retaddr, tmpstr);\n\t\t\treturn retaddr;\n\t\t}\n\t\tif (f_gethostbyname && f_gethostbyname2) {\n\t\t\ttmpstr = _resolv_v4_ghbn (raddr, d_resp, extra);\n\t\t\tif (tmpstr) {\n\t\t\t\tsafe_strncpy (retaddr, tmpstr);\n\t\t\t\td_resp_tmp = d_resp;\n\t\t\t\td_resp = new_dnsresp (d_resp);\n\t\t\t}\n\t\t\ttmpstr = _resolv_v6_ghbn2 (raddr, d_resp, extra);\n\t\t\tif (!tmpstr) {\n\t\t\t\td_resp_tmp->next = NULL;\n\t\t\t\tfree (d_resp);\n\t\t\t}\n\t\t\treturn retaddr;\n\t\t}\n\t}\n\n\treturn NULL;\n}\n\n"
  },
  {
    "path": "src/sub-output.c",
    "content": "/*\n * sipcalc, sub-output.c\n * \n * $Id: sub-output.c,v 1.32 2003/03/19 12:33:56 simius Exp $\n * \n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *  \n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nstatic const char rcsid[] = \"$Id: sub-output.c,v 1.32 2003/03/19 12:33:56 simius Exp $\";\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include \"sub.h\"\n\nvoid\nshow_c_wildcard_info_v4 (struct if_info *ifi)\n{\n\tu_int32_t mask;\n\tint bitcount;\n\tint x;\n\n\tmask = ifi->v4ad.n_haddr ^ 0xffffffff;\n\tbitcount = 0;\n\tfor (x = 0; x < 32; x++) {\n\t\tif ((mask >> x) & 1)\n\t\t\tbitcount++;\n\t}\n\n\tprintf (\"[WILDCARD]\\n\");\n\tprintf (\"Wildcard\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_haddr));\n\tprintf (\"Network mask\t\t- %s\\n\",\n\t\tnumtoquad (mask));\n\tprintf (\"Network mask (bits)\t- %d\\n\",\n\t\tbitcount);\n\tprintf (\"\\n\");\n/*\n\tprintf (\"Host address\t\t- %s\\n\", numtoquad (ifi->v4ad.n_haddr));\n\tprintf (\"Host address (decimal)\t- %u\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Host address (hex)\t- %X\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Network address\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_naddr));\n\tprintf (\"Network mask\t\t- %s\\n\", numtoquad (ifi->v4ad.n_nmask));\n\tprintf (\"Network mask (bits)\t- %d\\n\", ifi->v4ad.n_nmaskbits);\n\tprintf (\"Network mask (hex)\t- %X\\n\", ifi->v4ad.n_nmask);\n\tprintf (\"Broadcast address\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_broadcast));\n\tprintf (\"Cisco wildcard\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_nmask ^ 0xffffffff));\n\tif (!ifi->v4ad.n_nmask)\n\t\tprintf (\"Addresses in network\t- %u\\n\",\n\t\t\t(ifi->v4ad.n_broadcast) - (ifi->v4ad.n_naddr));\n\telse\n\t\tprintf (\"Addresses in network\t- %u\\n\",\n\t\t\t(ifi->v4ad.n_broadcast) - (ifi->v4ad.n_naddr) + 1);\n\tprintf (\"Network range\t\t- %s - \", numtoquad (ifi->v4ad.n_naddr));\n\tprintf (\"%s\\n\", numtoquad (ifi->v4ad.n_broadcast));\n\tif (ifi->v4ad.n_naddr + 1 <= ifi->v4ad.n_broadcast - 1) {\n\t\tprintf (\"Usable range\t\t- %s - \",\n\t\t\tnumtoquad (ifi->v4ad.n_naddr + 1));\n\t\tprintf (\"%s\\n\", numtoquad (ifi->v4ad.n_broadcast - 1));\n\t}\n\tprintf (\"\\n\");\n*/\n\n\treturn;\n}\n\n\nvoid\nshow_split_networks_v4 (struct if_info *ifi, u_int32_t splitmask, int v4args, struct misc_args m_argv4)\n{\n\tu_int32_t diff, start, end;\n\tint x;\n\tstruct if_info ifi_tmp;\n\tint v4args_tmp;\n\n\tv4args_tmp = 0;\n\n\tif ((v4args & V4VERBSPLIT) == V4VERBSPLIT)\n\t\tprintf (\"[Split network - verbose]\\n\");\n\telse\n\t\tprintf (\"[Split network]\\n\");\n\n\tif (splitmask < ifi->v4ad.n_nmask) {\n\t\tprintf (\"-[ERR : Oversized splitmask]\\n\\n\");\n\t\treturn;\n\t}\n\tdiff = 0xffffffff - splitmask + 1;\n\tstart = ifi->v4ad.n_naddr;\n\tend = ifi->v4ad.n_naddr + diff - 1;\n\n\tif ((v4args & V4VERBSPLIT) == V4VERBSPLIT) {\n\t\tmemcpy ((struct if_info *) &ifi_tmp, (struct if_info *) ifi, sizeof(struct if_info));\n\t\tv4args_tmp = v4args ^ V4SPLIT;\n\t\tv4args_tmp = v4args_tmp ^ V4VERBSPLIT;\n\t\tif (!v4args_tmp)\n\t\t\tv4args_tmp = CIDR_INFO;\n\t\tifi_tmp.next = NULL;\n\t}\n\n\tx = 0;\n\twhile (!x) {\n\t\tif ((v4args & V4VERBSPLIT) != V4VERBSPLIT) {\n\t\t\tprintf (\"Network\t\t\t- %-15s - \",\n\t\t\t\tnumtoquad (start));\n\t\t\tprintf (\"%s\\n\", numtoquad (end));\n\t\t}\n\t\tif ((v4args & V4VERBSPLIT) == V4VERBSPLIT) {\n\t\t\tsafe_bzero (ifi_tmp.p_v4addr);\n\t\t\tsafe_bzero (ifi_tmp.p_v4nmask);\n\t\t\tsafe_bzero (ifi_tmp.p_v6addr);\n\t\t\tsafe_snprintf (ifi_tmp.p_v4addr, \"%s\", numtoquad (start));\n\t\t\tsafe_snprintf (ifi_tmp.p_v4nmask, \"%s\", numtoquad (splitmask));\n\t\t}\n\t\tstart += diff;\n\t\tif (end == 0xffffffff || end >= ifi->v4ad.n_broadcast)\n\t\t\tx = 1;\n\t\tend += diff;\n\n\t\tif ((v4args & V4VERBSPLIT) == V4VERBSPLIT)\n\t\t\tout_cmdline (&ifi_tmp, v4args_tmp, m_argv4, 0, m_argv4, 1, 0);\n\t}\n\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nint\nshow_networks_v4 (struct if_info *ifi, int count)\n{\n\tu_int32_t diff, start, end;\n\tint x;\n\n\tprintf (\"[Networks]\\n\");\n\tdiff = 0xffffffff - ifi->v4ad.n_nmask + 1;\n\tif (ifi->v4ad.n_nmask > 0xffffff00 && count == -1) {\n\t\tstart = ifi->v4ad.n_naddr & 0xffffff00;\n\t\tend = (ifi->v4ad.n_broadcast & 0xffffff00) + diff - 1;\n\t} else {\n\t\tstart = ifi->v4ad.n_naddr;\n\t\tend = ifi->v4ad.n_broadcast;\n\t}\n\n\tx = 0;\n\twhile (!x && count) {\n\t\tprintf (\"Network\t\t\t- %-15s - \",\n\t\t\tnumtoquad (start));\n\t\tprintf (\"%s\", numtoquad (end));\n\t\tif (start == ifi->v4ad.n_naddr)\n\t\t\tprintf (\" (current)\\n\");\n\t\telse\n\t\t\tprintf (\"\\n\");\n\t\tstart += diff;\n\t\tif (end == 0xffffffff)\n\t\t\tx = 1;\n\t\tif ((end & 0x000000ff) == 0xff && count == -1)\n\t\t\tx = 1;\n\t\tend += diff;\n\t\tif (count > 0)\n\t\t\tcount--;\n\t}\n\n\tprintf (\"\\n\");\n\n\treturn 0;\n}\n\nvoid\nprint_cf_info_v4 (struct if_info *ifi)\n{\n\tprintf (\"[Classful]\\n\");\n\tprintf (\"Host address\t\t- %s\\n\", numtoquad (ifi->v4ad.n_haddr));\n\tprintf (\"Host address (decimal)\t- %u\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Host address (hex)\t- %X\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Network address\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_cnaddr));\n\tprintf (\"Network class\t\t- %c%s\\n\", ifi->v4ad.class,\n\t\tifi->v4ad.class_remark);\n\tprintf (\"Network mask\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_cnmask));\n\tprintf (\"Network mask (hex)\t- %X\\n\", ifi->v4ad.n_cnmask);\n\tprintf (\"Broadcast address\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_cnaddr +\n\t\t\t   (0xffffffff - ifi->v4ad.n_cnmask)));\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nvoid\nprint_cf_bitmap_v4 (struct if_info *ifi)\n{\n\tprintf (\"[Classful bitmaps]\\n\");\n\tprintf (\"Network address\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_cnaddr));\n\tprintf (\"Network mask\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_cnmask));\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nvoid\nprint_cidr_info_v4 (struct if_info *ifi)\n{\n\tprintf (\"[CIDR]\\n\");\n\tprintf (\"Host address\t\t- %s\\n\", numtoquad (ifi->v4ad.n_haddr));\n\tprintf (\"Host address (decimal)\t- %u\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Host address (hex)\t- %X\\n\", ifi->v4ad.n_haddr);\n\tprintf (\"Network address\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_naddr));\n\tprintf (\"Network mask\t\t- %s\\n\", numtoquad (ifi->v4ad.n_nmask));\n\tprintf (\"Network mask (bits)\t- %d\\n\", ifi->v4ad.n_nmaskbits);\n\tprintf (\"Network mask (hex)\t- %X\\n\", ifi->v4ad.n_nmask);\n\tprintf (\"Broadcast address\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_broadcast));\n\tprintf (\"Cisco wildcard\t\t- %s\\n\",\n\t\tnumtoquad (ifi->v4ad.n_nmask ^ 0xffffffff));\n\tif (!ifi->v4ad.n_nmask)\n\t\tprintf (\"Addresses in network\t- %u\\n\",\n\t\t\t(ifi->v4ad.n_broadcast) - (ifi->v4ad.n_naddr));\n\telse\n\t\tprintf (\"Addresses in network\t- %u\\n\",\n\t\t\t(ifi->v4ad.n_broadcast) - (ifi->v4ad.n_naddr) + 1);\n\tprintf (\"Network range\t\t- %s - \", numtoquad (ifi->v4ad.n_naddr));\n\tprintf (\"%s\\n\", numtoquad (ifi->v4ad.n_broadcast));\n\tif (ifi->v4ad.n_naddr + 1 <= ifi->v4ad.n_broadcast - 1) {\n\t\tprintf (\"Usable range\t\t- %s - \",\n\t\t\tnumtoquad (ifi->v4ad.n_naddr + 1));\n\t\tprintf (\"%s\\n\", numtoquad (ifi->v4ad.n_broadcast - 1));\n\t}\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nvoid\nprint_cidr_bitmap_v4 (struct if_info *ifi)\n{\n\tprintf (\"[CIDR bitmaps]\\n\");\n\tprintf (\"Host address\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_haddr));\n\tprintf (\"Network address\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_naddr));\n\tprintf (\"Network mask\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_nmask));\n\tprintf (\"Broadcast address\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_broadcast));\n\tprintf (\"Cisco wildcard\t\t- %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_nmask ^ 0xffffffff));\n\tprintf (\"Network range\t\t- %s -\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_naddr));\n\tprintf (\"\t\t\t  %s\\n\",\n\t\tnumtobitmap (ifi->v4ad.n_broadcast));\n\tif (ifi->v4ad.n_naddr + 1 <= ifi->v4ad.n_broadcast - 1) {\n\t\tprintf (\"Usable range\t\t- %s -\\n\",\n\t\t\tnumtobitmap (ifi->v4ad.n_naddr + 1));\n\t\tprintf (\"\t\t\t  %s\\n\",\n\t\t\tnumtobitmap (ifi->v4ad.n_broadcast - 1));\n\t}\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nvoid\nprint_comp_v6 (struct sip_in6_addr addr)\n{\n\tint x, y, z;\n\tint start, num;\n\n\tstart = -1;\n\tnum = 0;\n\ty = 0;\n\tz = 0;\n\tfor (x = 0; x < 8; x++) {\n\t\tif (addr.sip6_addr16[x] == 0) {\n\t\t\tif (y == -1)\n\t\t\t\ty = x;\n\t\t\tz++;\n\t\t} else {\n\t\t\tif (z > num && z > 1) {\n\t\t\t\tstart = y;\n\t\t\t\tnum = z;\n\t\t\t}\n\t\t\ty = -1;\n\t\t\tz = 0;\n\t\t}\n\t}\n\n\tif (z > num && z > 1) {\n\t\tstart = y;\n\t\tnum = z;\n\t}\n\n\tfor (x = 0; x < 8; x++) {\n\t\tif (x == start) {\n\t\t\tif (!x)\n\t\t\t\tprintf (\":\");\n\t\t\tprintf (\":\");\n\t\t\tx += num - 1;\n\t\t} else {\n\t\t\tprintf (\"%x\", addr.sip6_addr16[x]);\n\t\t\tif (x != 7)\n\t\t\t\tprintf (\":\");\n\t\t}\n\t}\n\n\treturn;\n}\n\nvoid\nprint_exp_v4inv6 (struct sip_in6_addr addr)\n{\n\tunsigned char num;\n\n\tprintf (\"%04x:%04x:%04x:%04x:%04x:%04x:\",\n\t\taddr.sip6_addr16[0],\n\t\taddr.sip6_addr16[1],\n\t\taddr.sip6_addr16[2],\n\t\taddr.sip6_addr16[3], addr.sip6_addr16[4], addr.sip6_addr16[5]);\n\n\tnum = (addr.sip6_addr16[6] >> 8) & 0xff;\n\tprintf (\"%d.\", num);\n\tnum = addr.sip6_addr16[6] & 0xff;\n\tprintf (\"%d.\", num);\n\tnum = (addr.sip6_addr16[7] >> 8) & 0xff;\n\tprintf (\"%d.\", num);\n\tnum = addr.sip6_addr16[7] & 0xff;\n\tprintf (\"%d\", num);\n\n\treturn;\n}\n\nvoid\nprint_comp_v4inv6 (struct sip_in6_addr addr)\n{\n\tunsigned char v4num;\n\tint x, y, z;\n\tint start, num;\n\n\tstart = -1;\n\tnum = 0;\n\ty = 0;\n\tz = 0;\n\tfor (x = 0; x < 6; x++) {\n\t\tif (addr.sip6_addr16[x] == 0) {\n\t\t\tif (y == -1)\n\t\t\t\ty = x;\n\t\t\tz++;\n\t\t} else {\n\t\t\tif (z > num && z > 1) {\n\t\t\t\tstart = y;\n\t\t\t\tnum = z;\n\t\t\t}\n\t\t\ty = -1;\n\t\t\tz = 0;\n\t\t}\n\t}\n\n\tif (z > num && z > 1) {\n\t\tstart = y;\n\t\tnum = z;\n\t}\n\n\tfor (x = 0; x < 6; x++) {\n\t\tif (x == start) {\n\t\t\tif (!x)\n\t\t\t\tprintf (\":\");\n\t\t\tprintf (\":\");\n\t\t\tx += num - 1;\n\t\t} else {\n\t\t\tprintf (\"%x:\", addr.sip6_addr16[x]);\n\t\t}\n\t}\n\n\tv4num = (addr.sip6_addr16[6] >> 8) & 0xff;\n\tprintf (\"%d.\", v4num);\n\tv4num = addr.sip6_addr16[6] & 0xff;\n\tprintf (\"%d.\", v4num);\n\tv4num = (addr.sip6_addr16[7] >> 8) & 0xff;\n\tprintf (\"%d.\", v4num);\n\tv4num = addr.sip6_addr16[7] & 0xff;\n\tprintf (\"%d\", v4num);\n\n\treturn;\n}\n\nvoid\nprint_exp_v6 (struct sip_in6_addr addr)\n{\n\tprintf\n\t    (\"%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\",\n\t     addr.sip6_addr16[0],\n\t     addr.sip6_addr16[1],\n\t     addr.sip6_addr16[2],\n\t     addr.sip6_addr16[3],\n\t     addr.sip6_addr16[4],\n\t     addr.sip6_addr16[5], addr.sip6_addr16[6], addr.sip6_addr16[7]);\n}\n\nvoid\nprint_mixed_v6 (struct sip_in6_addr addr)\n{\n\tprintf\n\t    (\"%x:%x:%x:%x:%x:%x:%x:%x\",\n\t     addr.sip6_addr16[0],\n\t     addr.sip6_addr16[1],\n\t     addr.sip6_addr16[2],\n\t     addr.sip6_addr16[3],\n\t     addr.sip6_addr16[4],\n\t     addr.sip6_addr16[5], addr.sip6_addr16[6], addr.sip6_addr16[7]);\n}\n\nvoid\nprint_revdns_v6 (struct sip_in6_addr addr) {\n\tchar inbuf[40], outbuf[256];\n\tint x, y;\n\n\tsafe_bzero (inbuf);\n\tsafe_bzero (outbuf);\n\n\tsafe_snprintf\n\t(inbuf, \"%04x%04x%04x%04x%04x%04x%04x%04x\",\n\t addr.sip6_addr16[0],\n\t addr.sip6_addr16[1],\n\t addr.sip6_addr16[2],\n\t addr.sip6_addr16[3],\n\t addr.sip6_addr16[4],\n\t addr.sip6_addr16[5],\n\t addr.sip6_addr16[6], addr.sip6_addr16[7]);\n\n\ty = 0;\n\tfor (x = (strlen (inbuf) - 1); x >= 0; x--) {\n\t\toutbuf[y] = inbuf[x];\n\t\toutbuf[y + 1] = '.';\n\t\ty += 2;\n\t}\n\n\tsafe_strncat (outbuf, \"ip6.arpa.\");\n\n\tprintf(\"%s\", outbuf);\n}\n\nvoid\nprint_rev_v6 (struct if_info *ifi)\n{\n\tprintf(\"[IPV6 DNS]\\n\");\n\tprintf (\"Reverse DNS (ip6.arpa)\t-\\n\");\n\tprint_revdns_v6 (ifi->v6ad.haddr);\n\tprintf(\"\\n\");\n\n\tprintf (\"\\n\");\n}\n\nvoid\nprint_v6 (struct if_info *ifi)\n{\n\tprintf (\"[IPV6 INFO]\\n\");\n\tprintf (\"Expanded Address\t- \");\n\tprint_exp_v6 (ifi->v6ad.haddr);\n\tprintf (\"\\n\");\n\tprintf (\"Compressed address\t- \");\n\tprint_comp_v6 (ifi->v6ad.haddr);\n\tprintf (\"\\n\");\n\tprintf (\"Subnet prefix (masked)\t- \");\n\tprint_mixed_v6 (ifi->v6ad.prefix);\n\tprintf (\"/%d\\n\", ifi->v6ad.nmaskbits);\n\tprintf (\"Address ID (masked)\t- \");\n\tprint_mixed_v6 (ifi->v6ad.suffix);\n\tprintf (\"/%d\\n\", ifi->v6ad.nmaskbits);\n\tprintf (\"Prefix address\t\t- \");\n\tprint_mixed_v6 (ifi->v6ad.nmask);\n\tprintf (\"\\n\");\n\tprintf (\"Prefix length\t\t- %d\\n\", ifi->v6ad.nmaskbits);\n\tprintf (\"Address type\t\t- %s\\n\", ifi->v6ad.class_remark);\n\tif (ifi->v6ad.comment[0])\n\t\tprintf (\"Comment\t\t\t- %s\\n\",\n\t\t\tifi->v6ad.comment);\n\tprintf (\"Network range\t\t- \");\n\tprint_exp_v6 (ifi->v6ad.prefix);\n\tprintf (\" -\\n\t\t\t  \");\n\tprint_exp_v6 (ifi->v6ad.broadcast);\n\tprintf (\"\\n\");\n\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nvoid\nprint_v4inv6 (struct if_info *ifi)\n{\n\tprintf (\"[V4INV6]\\n\");\n\tif (ifi->v6ad.type == V6TYPE_V4INV6 && !ifi->v6ad.real_v4) {\n\t\tprintf\n\t\t    (\"-[INFO : Address was submitted as an IPv4-compatible IPv6 address]\\n\");\n\t\tprintf\n\t\t    (\"-[INFO : The Address does not qualify as this as per the guidelines]\\n\");\n\t\tprintf (\"-[INFO : in RFC2373]\\n\\n\");\n\t}\n\n\tprintf (\"Expanded v4inv6 address\t- \");\n\tprint_exp_v4inv6 (ifi->v6ad.haddr);\n\tprintf (\"\\n\");\n\tprintf (\"Compr. v4inv6 address\t- \");\n\tprint_comp_v4inv6 (ifi->v6ad.haddr);\n\tprintf (\"\\n\");\n\tif (ifi->v6ad.type == V6TYPE_V4INV6 && ifi->v6ad.real_v4 == 1)\n\t\tprintf\n\t\t    (\"Comment\t\t\t- IPv4-compatible IPv6 address\\n\");\n\tif (ifi->v6ad.type == V6TYPE_V4INV6 && ifi->v6ad.real_v4 == 2)\n\t\tprintf\n\t\t    (\"Comment\t\t\t- IPv4-mapped IPv6 address\\n\");\n\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\nint\nv6plus (struct sip_in6_addr *a, struct sip_in6_addr *b)\n{\n\tint x, y, z;\n\n\tfor (x = 7; x >= 0; x--) {\n\t\tif (a->sip6_addr16[x] + b->sip6_addr16[x] > 0xffff) {\n\t\t\ty = x - 1;\n\t\t\tz = 0;\n\t\t\twhile (y >= 0 && !z) {\n\t\t\t\tz = 1;\n\t\t\t\tif (a->sip6_addr16[y] + 1 > 0xffff) {\n\t\t\t\t\ta->sip6_addr16[y] = 0;\n\t\t\t\t\tz = 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ta->sip6_addr16[y]++;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\ty--;\t\t\t\t\n\t\t\t}\n\n\t\t\ta->sip6_addr16[x] = a->sip6_addr16[x] + b->sip6_addr16[x] - 0x10000;\n\t\t}\n\t\telse {\n\t\t\ta->sip6_addr16[x] += b->sip6_addr16[x];\n\t\t}\n\t}\n\n\treturn 0;\n}\n\nvoid\nshow_split_networks_v6 (struct if_info *ifi, struct sip_in6_addr splitmask, int v6args, struct misc_args m_argv6)\n{\n\tstruct sip_in6_addr sdiff, ediff, start, end, tmpaddr;\n\tint x, y, z;\n\tstruct if_info ifi_tmp;\n\tint v6args_tmp;\n\n\tv6args_tmp = 0;\n\n\tif ((v6args & V6VERBSPLIT) == V6VERBSPLIT)\n\t\tprintf (\"[Split network - verbose]\\n\");\n\telse\n\t\tprintf (\"[Split network]\\n\");\n\n\tx = 0;\n\ty = 0;\n\tdo {\n\t\tif (splitmask.sip6_addr16[x] > ifi->v6ad.nmask.sip6_addr16[x])\n\t\t\ty = 1;\n\t\tif (ifi->v6ad.nmask.sip6_addr16[x] > splitmask.sip6_addr16[x])\n\t\t\ty = 2;\n\t\tx++;\n\t} while (x < 8 && !y);\n\tif (y == 2) {\n\t\tprintf (\"-[ERR : Oversized splitmask]\\n\\n\");\n\t\treturn;\n\t}\n\n\tfor (x = 0; x < 8; x++) {\n\t\tif(splitmask.sip6_addr16)\n\t\t\tsdiff.sip6_addr16[x] = 0xffffffff - splitmask.sip6_addr16[x];\n\t\tstart.sip6_addr16[x] = ifi->v6ad.prefix.sip6_addr16[x];\n\t\tend.sip6_addr16[x] =\n\t\t    ifi->v6ad.prefix.sip6_addr16[x] + sdiff.sip6_addr16[x];\n\t\tediff.sip6_addr16[x] = sdiff.sip6_addr16[x];\n\t}\n\tfor (x = 0; x < 8; x++)\n\t\ttmpaddr.sip6_addr16[x] = 0;\n\ttmpaddr.sip6_addr16[7] = 1;\n\tv6plus (&sdiff, &tmpaddr);\n\n\tif ((v6args & V6VERBSPLIT) == V6VERBSPLIT) {\n\t\tmemcpy ((struct if_info *) &ifi_tmp, (struct if_info *) ifi, sizeof(struct if_info));\n\t\tv6args_tmp = v6args ^ V6SPLIT;\n\t\tv6args_tmp = v6args_tmp ^ V6VERBSPLIT;\n\t\tif (!v6args_tmp)\n\t\t\tv6args_tmp = V6_INFO;\n\t\tifi_tmp.next = NULL;\n\t}\n\n\tx = 0;\n\twhile (!x) {\n\t\tif ((v6args & V6VERBSPLIT) != V6VERBSPLIT) {\n\t\t\tprintf (\"Network\t\t\t- \");\n\t\t\tprint_exp_v6 (start);\n\t\t\tprintf (\" -\\n\\t\\t\\t  \");\n\t\t\tprint_exp_v6 (end);\n\t\t\tprintf (\"\\n\");\n\t\t}\n\n\t\tif ((v6args & V6VERBSPLIT) == V6VERBSPLIT) {\n\t\t\tsafe_bzero (ifi_tmp.p_v4addr);\n\t\t\tsafe_bzero (ifi_tmp.p_v4nmask);\n\t\t\tsafe_bzero (ifi_tmp.p_v6addr);\n\t\t\tsafe_snprintf (ifi_tmp.p_v6addr, \"%s/%d\", get_comp_v6 (start), m_argv6.v6splitnum);\n\t\t}\n\n\t\tv6plus (&start, &sdiff);\n\n\t\ty = 0;\n\t\tfor (z = 0; z < 8; z++)\n\t\t\tif (end.sip6_addr16[z] != 0xffff)\n\t\t\t\ty = 1;\n\t\tif (!y)\n\t\t\tx = 1;\n\n\t\ty = 0;\n\t\tz = 0;\n\t\tdo {\n\t\t\tif (end.sip6_addr16[z] >\n\t\t\t    ifi->v6ad.broadcast.sip6_addr16[z])\n\t\t\t\ty = 1;\n\t\t\tif (ifi->v6ad.broadcast.sip6_addr16[z] >\n\t\t\t    end.sip6_addr16[z])\n\t\t\t\ty = 2;\n\t\t\tz++;\n\t\t} while (z < 8 && !y);\n\n\t\tif (!y || y == 1)\n\t\t\tx = 1;\n\n\t\tfor (z = 0; z < 8; z++)\n\t\t\tend.sip6_addr16[z] = 0;\n\n\t\tv6plus (&end, &start);\n\t\tv6plus (&end, &ediff);\n\n\t\tif ((v6args & V6VERBSPLIT) == V6VERBSPLIT)\n\t\t\tout_cmdline (&ifi_tmp, v6args_tmp, m_argv6, v6args_tmp, m_argv6, 1, 0);\n\t}\n\n\tprintf (\"\\n\");\n\n\treturn;\n}\n\n#ifdef HAVE_GETOPT_LONG\nvoid\nprint_help ()\n{\n\tprintf (\"%s %s\\n\\n\", NAME, VERSION);\n\tprintf\n\t    (\"Usage: %s [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>\\n\\n\",\n\t     NAME);\n\tprintf (\"Global options:\\n\");\n\tprintf (\"  -a, --all\\t\\t\\tAll possible information.\\n\");\n\tprintf (\"  -d, --resolve\\t\\t\\tEnable name resolution.\\n\");\n\tprintf (\"  -h, --help\\t\\t\\tDisplay this help.\\n\");\n\tprintf (\"  -I, --addr-int=INT\\t\\tAdded an interface.\\n\");\n\tprintf\n\t    (\"  -n, --subnets=NUM\\t\\tDisplay NUM extra subnets (starting from\\n\");\n\tprintf (\"\\t\\t\\t\\tthe current subnet). Will display all subnets\\n\");\n\tprintf (\"\\t\\t\\t\\tin the current /24 if NUM is 0.\\n\");\n\tprintf (\"  -u, --split-verbose\\t\\tVerbose split.\\n\");\n\tprintf (\"  -v, --version\\t\\t\\tVersion information.\\n\");\n\tprintf (\"  -4, --addr-ipv4=ADDR\\t\\tAdd an ipv4 address.\\n\");\n\tprintf (\"  -6, --addr-ipv6=ADDR\\t\\tAdd an ipv6 address.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"IPv4 options:\\n\");\n\tprintf (\"  -b, --cidr-bitmap\\t\\tCIDR bitmap.\\n\");\n\tprintf (\"  -c, --classful-addr\\t\\tClassful address information.\\n\");\n\tprintf (\"  -i, --cidr-addr\\t\\tCIDR address information. (default)\\n\");\n\tprintf\n\t    (\"  -s, --v4split=MASK\\t\\tSplit the current network into subnets\\n\");\n\tprintf (\"\\t\\t\\t\\tof MASK size.\\n\");\n\tprintf (\"  -w, --wildcard\\t\\tDisplay information for a wildcard\\n\");\n\tprintf (\"\\t\\t\\t\\t(inverse mask).\\n\");\n\tprintf (\"  -x, --classful-bitmap\\tClassful bitmap.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"IPv6 options:\\n\");\n\tprintf (\"  -e, --v4inv6\\t\\t\\tIPv4 compatible IPv6 information.\\n\");\n\tprintf (\"  -r, --v6rev\\t\\t\\tIPv6 reverse DNS output.\\n\");\n\tprintf\n\t    (\"  -S, --v6split=MASK\\t\\tSplit the current network into subnets\\n\\t\\t\\t\\tof MASK size.\\n\");\n\tprintf (\"  -t, --v6-standard\\t\\tStandard IPv6. (default)\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Address must be in the \\\"standard\\\" dotted quad format.\\n\");\n\tprintf (\"Netmask can be given in three different ways:\\n\");\n\tprintf (\" - Number of bits    [/nn]\\n\");\n\tprintf (\" - Dotted quad       [nnn.nnn.nnn.nnn]\\n\");\n\tprintf (\" - Hex               [0xnnnnnnnn | nnnnnnnn]\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Interface must be a valid network interface on the system.\\n\");\n\tprintf\n\t    (\"If this options is used an attempt will be made to gain the address\\n\");\n\tprintf (\"and netmask from the specified interface.\\n\");\n\tprintf (\"\\n\");\n\tprintf\n\t    (\"Replacing address/interface with '-' will use stdin for reading further\\n\");\n\tprintf (\"arguments.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Report bugs to <simon@routemeister.net>.\\n\");\n\n\treturn;\n}\n#else\t\t\t\t/* ! HAVE_GETOPT_LONG */\nvoid\nprint_help ()\n{\n\tprintf (\"%s %s\\n\\n\", NAME, VERSION);\n\tprintf\n\t    (\"Usage: %s [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>\\n\\n\",\n\t     NAME);\n\tprintf (\"Global options:\\n\");\n\tprintf (\"  -a\\t\\tAll possible information.\\n\");\n\tprintf (\"  -d\\t\\tEnable name resolution.\\n\");\n\tprintf (\"  -h\\t\\tDisplay this help.\\n\");\n\tprintf (\"  -I\\t\\tAdded an interface.\\n\");\n\tprintf\n\t    (\"  -n n\\t\\tDisplay n extra subnets (starting from current subnet).\\n\");\n\tprintf (\"\\t\\tWill display all subnets in the current /24 if n is 0.\\n\");\n\tprintf (\"  -u\\t\\tVerbose split.\\n\");\n\tprintf (\"  -v\\t\\tVersion information.\\n\");\n\tprintf (\"  -4\\t\\tAdd an ipv4 address.\\n\");\n\tprintf (\"  -6\\t\\tAdd an ipv6 address.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"IPv4 options:\\n\");\n\tprintf (\"  -b\\t\\tCIDR bitmap.\\n\");\n\tprintf (\"  -c\\t\\tClassful address information.\\n\");\n\tprintf (\"  -i\\t\\tCIDR address information. (default)\\n\");\n\tprintf\n\t    (\"  -s\\t\\tSplit the current network into subnets of MASK size.\\n\");\n\tprintf (\"  -w\\t\\tDisplay information for a wildcard (inverse mask).\\n\");\n\tprintf (\"  -x\\t\\tClassful bitmap.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"IPv6 options:\\n\");\n\tprintf (\"  -e\\t\\tIPv4 compatible IPv6 information.\\n\");\n\tprintf (\"  -r\\t\\tIPv6 reverse DNS output.\\n\");\n\tprintf\n\t    (\"  -S\\t\\tSplit the current network into subnets of MASK size.\\n\");\n\tprintf (\"  -t\\t\\tStandard IPv6. (default)\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Address must be in the \\\"standard\\\" dotted quad format.\\n\");\n\tprintf (\"Netmask can be given in three different ways:\\n\");\n\tprintf (\" - Number of bits    [/nn]\\n\");\n\tprintf (\" - Dotted quad       [nnn.nnn.nnn.nnn]\\n\");\n\tprintf (\" - Hex               [0xnnnnnnnn | nnnnnnnn]\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Interface must be a valid network interface on the system.\\n\");\n\tprintf\n\t    (\"If this options is used an attempt will be made to gain the address\\n\");\n\tprintf (\"and netmask from the specified interface.\\n\");\n\tprintf (\"\\n\");\n\tprintf\n\t    (\"Replacing address/interface with '-' will use stdin for reading further\\n\");\n\tprintf (\"arguments.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Report bugs to <simon@routemeister.net>.\\n\");\n\n\treturn;\n}\n#endif\t\t\t\t/* HAVE_GETOPT_LONG */\n\nvoid\nprint_short_help ()\n{\n\tprintf (\"Usage: %s [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>\\n\",\n\t\tNAME);\n\tprintf (\"Try '%s -h' for more information.\\n\", NAME);\n}\n\nvoid\nprint_version ()\n{\n\tprintf (\"%s %s\\n\", NAME, VERSION);\n\tprintf (\"Written by Simon Ekstrand.\\n\");\n\tprintf (\"\\n\");\n\tprintf (\"Copyright (C) 2003-2013 Simon Ekstrand.\\n\");\n\tprintf\n\t    (\"This is free software; see the source for copying conditions.  There is NO\\n\");\n\tprintf\n\t    (\"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\\n\");\n}\n"
  },
  {
    "path": "src/sub.c",
    "content": "/*\n * sipcalc, sub.c\n * \n * $Id: sub.c,v 1.39 2003/03/19 12:28:16 simius Exp $\n * \n * -\n * Copyright (c) 2003 Simon Ekstrand\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *  \n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nstatic const char rcsid[] = \"$Id: sub.c,v 1.39 2003/03/19 12:28:16 simius Exp $\";\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n#include <stdio.h>\n#ifdef STDC_HEADERS\n#include <stdlib.h>\n#endif\n#include <string.h>\n#include <sys/types.h>\n#ifdef HAVE_UNISTD_H\n#include <unistd.h>\n#endif\n#if defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_H)\n#define _GNU_SOURCE\n#include <getopt.h>\n#endif\n#include \"sub.h\"\n#include \"sub-o.h\"\n\nextern char *optarg;\nextern int optind, opterr, optopt;\nint resolve;\n\nint\nout_cmdline (struct if_info *ifarg_cur, int v4args, struct misc_args m_argv4,\n\t     int v6args, struct misc_args m_argv6, int recurse, int index)\n{\n\tint ret;\n\n\tret = 0;\n\n\tif (ifarg_cur->type == IFT_V4) {\n\t\tprintf (\"-[ipv4 : %s] - %d\\n\", ifarg_cur->cmdstr, index);\n\t\tret = get_addrv4 (ifarg_cur);\n\t}\n\n\tif (ifarg_cur->type == IFT_V6) {\n\t\tprintf (\"-[ipv6 : %s] - %d\\n\", ifarg_cur->cmdstr, index);\n\t\tret = get_addrv6 (ifarg_cur);\n\t}\n\n\tif (ifarg_cur->type == IFT_INTV4 || ifarg_cur->type == IFT_INTV6) {\n\t\tprintf (\"-[int-ipv4 : %s] - %d\\n\", ifarg_cur->cmdstr, index);\n\t\tif (ifarg_cur->errorstr[0] != '\\0') {\n\t\t\tprintf (\"\\n-[ERR : %s]\\n\\n-\\n\", ifarg_cur->errorstr);\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tret = get_addrv4 (ifarg_cur);\n\t}\n\n\tif (ifarg_cur->type == IFT_UNKWN) {\n\t\tprintf (\"-[unknown : %s] - %d\\n\", ifarg_cur->cmdstr, index);\n\t\tprintf (\"\\n-[ERR : %s]\\n\\n-\\n\", ifarg_cur->errorstr);\n\t\treturn 0;\n\t}\n\n\tif (ret == -1) {\n\t\tprintf (\"\\n-[ERR : Invalid address]\\n\\n-\\n\");\n\t\treturn 0;\n\t}\n\tif (ret == -2) {\n\t\tprintf (\"\\n-[ERR : Invalid netmask]\\n\\n-\\n\");\n\t\treturn 0;\n\t}\n\n\tif (ifarg_cur->type == IFT_V4 || ifarg_cur->type == IFT_INTV4) {\n\t\tif (!v4args)\n\t\t\tv4args = CIDR_INFO;\n\n\t\tprintf (\"\\n\");\n\t\tif ((v4args & CF_INFO) == CF_INFO)\n\t\t\tprint_cf_info_v4 (ifarg_cur);\n\t\tif ((v4args & CIDR_INFO) == CIDR_INFO)\n\t\t\tprint_cidr_info_v4 (ifarg_cur);\n\t\tif ((v4args & CF_BITMAP) == CF_BITMAP)\n\t\t\tprint_cf_bitmap_v4 (ifarg_cur);\n\t\tif ((v4args & CIDR_BITMAP) == CIDR_BITMAP)\n\t\t\tprint_cidr_bitmap_v4 (ifarg_cur);\n\t\tif ((v4args & NET_INFO) == NET_INFO)\n\t\t\tshow_networks_v4 (ifarg_cur, m_argv4.numnets);\n\t\tif ((v4args & V4SPLIT) == V4SPLIT)\n\t\t\tshow_split_networks_v4 (ifarg_cur, m_argv4.splitmask, v4args, m_argv4);\n\t\tif ((v4args & C_WILDCARD) == C_WILDCARD)\n\t\t\tshow_c_wildcard_info_v4 (ifarg_cur);\n\t\tprintf (\"-\\n\");\n\t}\n\n\tif (ifarg_cur->type == IFT_V6 || ifarg_cur->type == IFT_INTV6) {\n\t\tif (!v6args)\n\t\t\tv6args = V6_INFO;\n\n\t\tprintf (\"\\n\");\n\t\tif ((v6args & V6_INFO) == V6_INFO)\n\t\t\tprint_v6 (ifarg_cur);\n\t\tif ((v6args & V4INV6) == V4INV6)\n\t\t\tprint_v4inv6 (ifarg_cur);\n\t\tif ((v6args & V6REV) == V6REV)\n\t\t\tprint_rev_v6 (ifarg_cur);\n\t\tif ((v6args & V6SPLIT) == V6SPLIT)\n\t\t\tshow_split_networks_v6 (ifarg_cur, m_argv6.v6splitmask, v6args, m_argv6);\n\t\tprintf (\"-\\n\");\n\t}\n\n\treturn 0;\n}\n\nint\ncleanline (char *sbuf, char *dbuf)\n{\n\tint x, y;\n\n\tfor (x = 0; x < strlen (sbuf); x++) {\n\t\tif (sbuf[x] == '\\n')\n\t\t\tsbuf[x] = ' ';\n\t\tif (sbuf[x] == '\\t')\n\t\t\tsbuf[x] = ' ';\n\t\tif (sbuf[x] == '#')\n\t\t\tsbuf[x] = '\\0';\n\t}\n\tx = strlen (sbuf) - 1;\n\twhile (sbuf[x] == ' ' && x > -1) {\n\t\tsbuf[x] = '\\0';\n\t\tx--;\n\t}\n\tif (!strlen (sbuf))\n\t\treturn 0;\n\n\tx = 0;\n\ty = 0;\n\twhile (x < strlen (sbuf)) {\n\t\tif (sbuf[x] == ' ' && x) {\n\t\t\tdbuf[y] = ' ';\n\t\t\ty++;\n\t\t}\n\t\twhile (sbuf[x] == ' ' && x < strlen (sbuf))\n\t\t\tx++;\n\t\twhile (sbuf[x] != ' ' && x < strlen (sbuf)) {\n\t\t\tdbuf[y] = sbuf[x];\n\t\t\ty++;\n\t\t\tx++;\n\t\t}\n\t\tif (dbuf[y - 1] == ' ')\n\t\t\treturn 0;\n\t}\n\tif (dbuf[strlen (dbuf) - 1] == ' ')\n\t\tdbuf[strlen (dbuf) - 1] = '\\0';\n\n\ty = 1;\n\tfor (x = 0; x < strlen (dbuf); x++)\n\t\tif (dbuf[x] == ' ')\n\t\t\ty++;\n\n\treturn y;\n}\n\nint\nget_stdin (char *args[])\n{\n\tchar buf[2], sbuf[128], dbuf[128], *arg1, *arg2;\n\tint x, y, z, argmax;\n\n\tsafe_bzero (buf);\n\n\targmax = (IFNAMSIZ + 1 > 19) ? IFNAMSIZ + 1 : 19;\n\targ1 = (char *) malloc (argmax);\n\targ2 = (char *) malloc (16);\n\tbzero ((char *) arg1, argmax);\n\tbzero ((char *) arg2, 16);\n\tsafe_bzero (sbuf);\n\tsafe_bzero (dbuf);\n\n\twhile (!sbuf[0]) {\n\t\tx = 0;\n\t\ty = 0;\n\t\tsafe_bzero (sbuf);\n\t\tdo {\n\t\t\tx = read (0, buf, 1);\n\t\t\tif (x == 1)\n\t\t\t\tsbuf[y] = buf[0];\n\t\t\ty++;\n\t\t} while (x > 0 && buf[0] != '\\n' && y < (sizeof(sbuf)-1));\n\t\tif (x < 0) {\n\t\t\tfree (arg1);\n\t\t\tfree (arg2);\n\t\t\treturn -1;\n\t\t}\n\t\tif (!x)\n\t\t\tbreak;\n\n\t\twhile (buf[0] != '\\n' && x == 1)\n\t\t\tx = read (0, buf, 1);\n\t\tif (x < 0) {\n\t\t\tfree (arg1);\n\t\t\tfree (arg2);\n\t\t\treturn -1;\n\t\t}\n\t\tif (!x)\n\t\t\tbreak;\n\t};\n\tif (!sbuf[0]) {\n\t\tfree (arg1);\n\t\tfree (arg2);\n\t\treturn -2;\n\t}\n\n\tx = cleanline (sbuf, dbuf);\n\tif (x < 1) {\n\t\tfree (arg1);\n\t\tfree (arg2);\n\t\treturn x;\n\t}\n\n\ty = 0;\n\twhile (y < strlen (dbuf) && y < argmax && dbuf[y] != ' ') {\n\t\targ1[y] = dbuf[y];\n\t\ty++;\n\t}\n\ty++;\n\tz = 0;\n\twhile (y < strlen (dbuf) && z < 15 && dbuf[y] != ' ') {\n\t\targ2[z] = dbuf[y];\n\t\ty++;\n\t\tz++;\n\t}\n\n\tstrncpy (args[0], arg1, 127);\n\tstrncpy (args[1], arg2, 127);\n\n\tfree (arg1);\n\tfree (arg2);\n\n\treturn x;\n}\n\nstruct argbox *\nnew_arg (struct argbox *abox)\n{\n\tabox->next = (struct argbox *) malloc (sizeof (struct argbox));\n\tabox = abox->next;\n\tsafe_bzero (abox->str);\n\tabox->type = 0;\n\tabox->resolv = 0;\n\tabox->next = NULL;\n\n\treturn abox;\n}\n\nvoid\nfree_boxargs (struct argbox *abox)\n{\n\tstruct argbox *old;\n\n\twhile (abox) {\n\t\told = abox;\n\t\tabox = abox->next;\n\t\tfree (old);\n\t}\n}\n\n/*\n * This function will try to populate an argumentbox.\n * This is slightly difficult due to the numerous different possible\n * input types, ie. v4addr, dotted quad netmask, /netmask, hex netmask,\n * v6addr, interface name etc.\n * This forces to have to try to guess what a user means in some cases.\n * This method can be fairly unforgiving with typos.\n */\nstruct argbox *\nget_boxargs (int argc, char *argv[], int argcount, struct argbox *abox_cur)\n{\n\tchar expaddr[128];\n\tint x, y;\n\tint error;\n\n\terror = 0;\n\n\t/*\n\t * We use goto's here *gasp*.\n\t */\n\twhile (argv[argcount]) {\n\t\tsafe_bzero (expaddr);\n\n\t\tsafe_strncpy (expaddr, argv[argcount]);\n\t\t/*\n\t\t * Baaad argument. Error out if this happens.\n\t\t */\n\t\tif (strlen (argv[argcount]) > sizeof(expaddr)-1) {\n\t\t\tprintf (\"-[ERR : INVALID ARG - %s]\\n\", expaddr);\n\t\t\terror = 1;\n\t\t\texit(1);\n\t\t}\n\n\t\t/*\n\t\t * Is this a v6 address?\n\t\t */\n\t\tx = validate_v6addr (expaddr);\n\t\tif (x) {\n\t\t\tsafe_strncpy (abox_cur->str, expaddr);\n\t\t\tabox_cur->type = AT_V6;\n\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\t\t\tgoto complete;\n\t\t}\n\n\t\t/*\n\t\t * Nope, is it an ipv4 address with a /xx mask?\n\t\t * \n\t\t * NOTE: validate_netmask returns different values if it finds\n\t\t * other types of netmasks to, but we only match on the above\n\t\t * here.\n\t\t */\n\t\tx = validate_netmask (expaddr);\n\t\tif (x == 2) {\n\t\t\tsafe_strncpy (abox_cur->str, expaddr);\n\t\t\tabox_cur->type = AT_V4;\n\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\t\t\tgoto complete;\n\t\t}\n\n\t\t/*\n\t\t * No, so is it a plain ipv4 address?\n\t\t */\n\t\tx = validate_v4addr (expaddr);\n\t\tif (x) {\n\t\t\ty = 0;\n\t\t\t/*\n\t\t\t * It is, does that mean the next argument is a\n\t\t\t * netmask?\n\t\t\t */\n\t\t\tif (argcount + 1 < argc)\n\t\t\t\ty = validate_netmask (argv[argcount + 1]);\n\t\t\t/*\n\t\t\t * 1 == 'normal' netmask\n\t\t\t * 3 == hex netmask\n\t\t\t */\n\t\t\tif (y == 1 || y == 3) {\n\t\t\t\tsnprintf (abox_cur->str, 34, \"%s %s\", expaddr, argv[argcount + 1]);\n\t\t\t\targcount++;\n\t\t\t}\n\t\t\telse\n\t\t\t\tsnprintf (abox_cur->str, 18, \"%s\", expaddr);\n\t\t\tabox_cur->type = AT_V4;\n\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\t\t\tgoto complete;\n\t\t}\n\n\t\ty = 0;\n\t\tif (argcount + 1 < argc)\n\t\t\ty = validate_netmask (argv[argcount + 1]);\n\t\tif (y == 1 || y == 3) {\n\t\t\tsafe_snprintf (abox_cur->str, \"%s %s\", expaddr, argv[argcount + 1]);\n\t\t\targcount++;\n\t\t}\n\t\telse\n\t\t\tsafe_strncpy (abox_cur->str, expaddr);\n\t\tabox_cur->type = AT_UNKWN;\n\t\tabox_cur->resolv = 1;\n\t\tabox_cur = new_arg (abox_cur);\n\ncomplete:\n\t\tsafe_bzero (expaddr);\n\t\targcount++;\n\t}\n\n\tif (error)\n\t\tprintf(\"\\n\");\n\n\treturn abox_cur;\n}\n\nvoid\nshow_abox (struct argbox *a)\n{\n\twhile(a) {\n\t\tprintf(\"%s - %d - %d\\n\", a->str, a->type, a->resolv);\n\t\ta = a->next;\n\t}\n}\n\nstruct if_info *\nparse_abox (struct argbox *abox, struct if_info *if_start)\n{\n\tstruct if_info *ifarg_start, *ifarg_cur, *ifarg_old;\n\tstruct if_info *if_cur;\n\tstruct dnsresp *d_resp_start, *d_resp_cur;\n\tchar *tmpstr;\n\tint x, if_found;\n\n\tifarg_old = ifarg_cur = ifarg_start =\n\t    (struct if_info *) malloc (sizeof (struct if_info));\n\tifarg_cur->next = NULL;\n\tbzero ((char *) ifarg_cur->name, IFNAMSIZ);\n\tsafe_bzero (ifarg_cur->p_v4addr);\n\tsafe_bzero (ifarg_cur->p_v4nmask);\n\n\twhile (abox) {\n\t\tif (abox->type == AT_V4 && !abox->resolv) {\n\t\t\ttmpstr = strstr (abox->str, \" \");\n\t\t\tif (tmpstr != NULL && (strlen (tmpstr) > 0)) {\n\t\t\t\ttmpstr++;\n\t\t\t\tx = 0;\n\t\t\t\twhile (x < 15 && tmpstr[x] != ' ' && x < strlen(tmpstr)) {\n\t\t\t\t\tifarg_cur->p_v4nmask[x] = tmpstr[x];\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tx = 0;\n\t\t\twhile (x < 18 && abox->str[x] != ' ') {\n\t\t\t\tifarg_cur->p_v4addr[x] = abox->str[x];\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tifarg_cur->type = IFT_V4;\n\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t}\n\n\t\tif (abox->type == AT_V4 && abox->resolv) {\n\t\t\td_resp_start = d_resp_cur = (struct dnsresp *) malloc (sizeof (struct dnsresp));\n\t\t\td_resp_start->next = NULL;\n\t\t\tsafe_bzero(d_resp_start->str);\n\t\t\td_resp_start->type = 0;\n\t\t\ttmpstr = resolve_addr (abox->str, PF_INET, d_resp_cur);\n\t\t\tif (tmpstr) {\n\t\t\t\td_resp_cur = d_resp_start;\n\t\t\t\twhile (d_resp_cur) {\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\ttmpstr = strstr (d_resp_cur->str, \" \");\n\t\t\t\t\tif (tmpstr != NULL && (strlen (tmpstr) > 0)) {\n\t\t\t\t\t\ttmpstr++;\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t\twhile (x < 15 && tmpstr[x] != ' ' && x < strlen(tmpstr)) {\n\t\t\t\t\t\t\tifarg_cur->p_v4nmask[x] = tmpstr[x];\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tx = 0;\n\t\t\t\t\twhile (x < 18 && d_resp_cur->str[x] != ' ') {\n\t\t\t\t\t\tifarg_cur->p_v4addr[x] = d_resp_cur->str[x];\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\tifarg_cur->type = IFT_V4;\n\t\t\t\t\tif (d_resp_cur->next)\n\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\td_resp_cur = d_resp_cur->next;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsafe_strncpy (ifarg_cur->p_v4addr, abox->str);\n\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\tifarg_cur->type = IFT_V4;\n\t\t\t}\n\n\t\t\tfree_dnsresp (d_resp_start);\n\t\t}\n\n\t\tif (abox->type == AT_V6 && !abox->resolv) {\n\t\t\tsafe_strncpy (ifarg_cur->p_v6addr, abox->str);\n\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\n\t\t\tmk_ipv6addr (&ifarg_cur->v6ad, ifarg_cur->p_v6addr);\n\t\t\tifarg_cur->type = IFT_V6;\n\t\t}\n\n\t\tif (abox->type == AT_V6 && abox->resolv) {\n\t\t\td_resp_start = d_resp_cur = (struct dnsresp *) malloc (sizeof (struct dnsresp));\n\t\t\td_resp_start->next = NULL;\n\t\t\tsafe_bzero(d_resp_start->str);\n\t\t\td_resp_start->type = 0;\n\t\t\ttmpstr = resolve_addr (abox->str, PF_INET6, d_resp_cur);\n\t\t\tif (tmpstr) {\n\t\t\t\td_resp_cur = d_resp_start;\n\t\t\t\twhile (d_resp_cur) {\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\tsafe_strncpy (ifarg_cur->p_v6addr, d_resp_cur->str);\n\t\t\t\t\tifarg_cur->type = IFT_V6;\n\n\t\t\t\t\tmk_ipv6addr (&ifarg_cur->v6ad, ifarg_cur->p_v6addr);\n\n\t\t\t\t\tif (d_resp_cur->next)\n\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\td_resp_cur = d_resp_cur->next;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\tsafe_strncpy (ifarg_cur->p_v6addr, abox->str);\n\t\t\t\tifarg_cur->type = IFT_V6;\n\n\t\t\t\tmk_ipv6addr (&ifarg_cur->v6ad, ifarg_cur->p_v6addr);\n\t\t\t}\n\n\t\t\tfree_dnsresp (d_resp_start);\n\t\t}\n\n\t\tif (abox->type == AT_INT) {\n\t\t\tif_cur = if_start;\n\t\t\tif_found = 0;\n\t\t\twhile (if_cur) {\n\t\t\t\tif (!strcmp (abox->str, if_cur->name)) {\n\t\t\t\t\tif (if_found) {\n\t\t\t\t\t\tifarg_old = ifarg_cur;\n\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\t}\n\t\t\t\t\tmemcpy ((struct if_info *) ifarg_cur, (struct if_info *) if_cur, sizeof (struct if_info));\n\t\t\t\t\tifarg_cur->type = IFT_INTV4;\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\tif_found = 1;\n\t\t\t\t}\n\t\t\t\tif_cur = if_cur->next;\n\t\t\t}\n\t\t\tif (!if_found) {\n\t\t\t\tstrncpy (ifarg_cur->name, abox->str, IFNAMSIZ);\n\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\tsafe_snprintf(ifarg_cur->errorstr, \"Unable to retrieve interface information\");\n\t\t\t\tifarg_cur->type = IFT_INTV4;\n\t\t\t}\n\t\t}\n\n\t\tif (abox->type == AT_UNKWN && !abox->resolv) {\n\t\t\tif_cur = if_start;\n\t\t\tif_found = 0;\n\t\t\twhile (if_cur) {\n\t\t\t\tif (!strcmp (abox->str, if_cur->name)) {\n\t\t\t\t\tif (if_found) {\n\t\t\t\t\t\tifarg_old = ifarg_cur;\n\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\t}\n\t\t\t\t\tmemcpy ((struct if_info *) ifarg_cur, (struct if_info *) if_cur, sizeof (struct if_info));\n\t\t\t\t\tifarg_cur->type = IFT_INTV4;\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\tif_found = 1;\n\t\t\t\t}\n\t\t\t\tif_cur = if_cur->next;\n\t\t\t}\n\t\t\tif (!if_found) {\n\t\t\t\tstrncpy (ifarg_cur->name, abox->str, IFNAMSIZ);\n\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\tsafe_snprintf(ifarg_cur->errorstr, \"Unable to retrieve interface information\");\n\t\t\t\tifarg_cur->type = IFT_INTV4;\n\t\t\t}\n\t\t}\n\n\t\tif (abox->type == AT_UNKWN && abox->resolv) {\n\t\t\td_resp_start = d_resp_cur = (struct dnsresp *) malloc (sizeof (struct dnsresp));\n\t\t\td_resp_start->next = NULL;\n\t\t\tsafe_bzero(d_resp_start->str);\n\t\t\td_resp_start->type = 0;\n\t\t\ttmpstr = resolve_addr (abox->str, PF_UNSPEC, d_resp_cur);\n\t\t\tif (tmpstr) {\n\t\t\t\td_resp_cur = d_resp_start;\n\t\t\t\twhile (d_resp_cur) {\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\tif (d_resp_cur->type == AF_INET6) {\n\t\t\t\t\t\tsafe_strncpy (ifarg_cur->p_v6addr, d_resp_cur->str);\n\t\t\t\t\t\tifarg_cur->type = IFT_V6;\n\n\t\t\t\t\t\tmk_ipv6addr (&ifarg_cur->v6ad, ifarg_cur->p_v6addr);\n\t\t\t\t\t}\n\t\t\t\t\tif (d_resp_cur->type == AF_INET) {\n\t\t\t\t\t\ttmpstr = strstr (d_resp_cur->str, \" \");\n\t\t\t\t\t\tif (tmpstr != NULL && (strlen (tmpstr) > 0)) {\n\t\t\t\t\t\t\ttmpstr++;\n\t\t\t\t\t\t\tx = 0;\n\t\t\t\t\t\t\twhile (x < 15 && tmpstr[x] != ' ' && x < strlen(tmpstr)) {\n\t\t\t\t\t\t\t\tifarg_cur->p_v4nmask[x] = tmpstr[x];\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t\twhile (x < 18 && d_resp_cur->str[x] != ' ') {\n\t\t\t\t\t\t\tifarg_cur->p_v4addr[x] = d_resp_cur->str[x];\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tifarg_cur->type = IFT_V4;\n\n\t\t\t\t\t}\n\t\t\t\t\tif (d_resp_cur->next)\n\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\td_resp_cur = d_resp_cur->next;\n\t\t\t\t}\n\t\t\t\tfree_dnsresp (d_resp_start);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif_cur = if_start;\n\t\t\t\tif_found = 0;\n\t\t\t\twhile (if_cur) {\n\t\t\t\t\tif (!strcmp (abox->str, if_cur->name)) {\n\t\t\t\t\t\tif (if_found) {\n\t\t\t\t\t\t\tifarg_old = ifarg_cur;\n\t\t\t\t\t\t\tifarg_cur = new_if (ifarg_cur);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmemcpy ((struct if_info *) ifarg_cur, (struct if_info *) if_cur, sizeof (struct if_info));\n\t\t\t\t\t\tifarg_cur->type = IFT_INTV4;\n\t\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\t\tif_found = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif_cur = if_cur->next;\n\t\t\t\t}\n\t\t\t\tif (!if_found) {\n\t\t\t\t\tsafe_strncpy (ifarg_cur->cmdstr, abox->str);\n\t\t\t\t\tsafe_snprintf(ifarg_cur->errorstr, \"Unparsable argument.\");\n\t\t\t\t\tifarg_cur->type = IFT_UNKWN;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tabox = abox->next;\n\t\tifarg_old = ifarg_cur;\n\t\tifarg_cur = new_if (ifarg_cur);\n\t}\n\n\n\tifarg_old->next = NULL;\n\tfree (ifarg_cur);\n\tifarg_cur = NULL;\n\n\tif (ifarg_start == ifarg_cur) {\n\t\tfree (ifarg_start);\n\t\treturn NULL;\n\t}\n\n\treturn ifarg_start;\n}\n\nint\nmain (int argc, char *argv[])\n{\n\tint x, y, z, m, v4args, v6args, iffound, argcount, first_err;\n\tstruct if_info *if_start, *if_cur;\n\tstruct if_info *ifarg_start, *ifarg_cur, *ifarg_old;\n\tint ch, parse_stdin, index;\n\tstruct misc_args m_argv4, m_argv6;\n\tint split_errv4, split_errv6;\n\tchar expaddr[128];\n\tchar oldcmdstr[128];\n\tstruct argbox *abox_start, *abox_cur, *abox_tmp;\n\tchar *stdinarg[3];\n#ifdef HAVE_GETOPT_LONG\n\tstatic struct option l_o[] = {\n\t\t{\"all\", no_argument, 0, 'a'},\n\t\t{\"cidr-bitmap\", no_argument, 0, 'b'},\n\t\t{\"classful-addr\", no_argument, 0, 'c'},\n\t\t{\"help\", no_argument, 0, 'h'},\n\t\t{\"cidr-addr\", no_argument, 0, 'i'},\n\t\t{\"subnets\", required_argument, 0, 'n'},\n\t\t{\"v4split\", required_argument, 0, 's'},\n\t\t{\"v6-standard\", no_argument, 0, 't'},\n\t\t{\"version\", no_argument, 0, 'v'},\n\t\t{\"classful-bitmap\", no_argument, 0, 'x'},\n\t\t{\"addr-ipv4\", required_argument, 0, '4'},\n\t\t{\"addr-ipv6\", required_argument, 0, '6'},\n\t\t{\"addr-int\", required_argument, 0, 'I'},\n\t\t{\"v4inv6\", no_argument, 0, 'e'},\n\t\t{\"v6split\", required_argument, 0, 'S'},\n\t\t{\"v6rev\", no_argument, 0, 'r'},\n\t\t{\"split-verbose\", no_argument, 0, 'u'},\n\t\t{\"resolve\", no_argument, 0, 'd'},\n\t\t{\"wildcard\", no_argument, 0, 'w'},\n\t\t{0, 0, 0, 0}\n\t};\n#endif\n\tif (argc < 2) {\n\t\tprint_short_help ();\n\t\treturn 0;\n\t}\n\n\tparse_stdin = 0;\n\tv4args = 0;\n\tv6args = 0;\n\tm_argv4.splitmask = 0;\n\tm_argv4.numnets = 0;\n\tm_argv6.splitmask = 0;\n\tm_argv6.numnets = 0;\n\tsplit_errv4 = 0;\n\tsplit_errv6 = 0;\n\tfirst_err = 1;\n\tifarg_start = NULL;\n\tifarg_old = NULL;\n\tresolve = 0;\n\n\t/*\n\t * abox == argument box == a box that holds (commandline) arguments :)\n\t * This is the structure we use to store all user input parsed into\n\t * (hopefully) managable chunks.\n\t * This excludes most of the -[a-z] flags, they're generally handled by\n\t * v[4,6]args.\n\t */\n\tabox_start = abox_cur = (struct argbox *) malloc (sizeof (struct argbox));\n\tsafe_bzero (abox_cur->str);\n\tabox_cur->type = 0;\n\tabox_cur->resolv = 0;\n\tabox_cur->next = NULL;\n\n\n\t/*\n\t * v[4,6]args holds flags based on commandline arguments for what we\n\t * want to output.\n\t */\n#ifdef HAVE_GETOPT_LONG\n\twhile ((ch =\n\t\tgetopt_long (argc, argv, \"abcdehHiI:n:rs:S:tuvVwx4:6:\", l_o,\n\t\t\t     NULL)) != -1) {\n#else\n\twhile ((ch = getopt (argc, argv, \"abcdehHiI:n:rs:S:tuvVwx4:6:\")) != -1) {\n#endif\n\t\tswitch (ch) {\n\t\tcase 'a':\n\t\t\tv4args =\n\t\t\t    v4args | CF_INFO | CF_BITMAP | CIDR_INFO |\n\t\t\t    CIDR_BITMAP | NET_INFO;\n\t\t\tv6args = v6args | V6_INFO | V4INV6 | V6REV;\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tv4args = v4args | CIDR_BITMAP;\n\t\t\tbreak;\n\t\tcase 'c':\n\t\t\tv4args = v4args | CF_INFO;\n\t\t\tbreak;\n\t\tcase 'd':\n\t\t\tresolve = 1;\n#if (!defined(HAVE_GETHOSTBYNAME2) && !defined(HAVE_GETADDRINFO)) || !defined(HAVE_INET_NTOP)\n\t\t\tprintf(\"-[INFO : IPv6 address resolution will fail due to lack of OS support]\\n\");\n#endif\n\t\t\tbreak;\n\t\tcase 'e':\n\t\t\tv6args = v6args | V4INV6;\n\t\t\tbreak;\n\t\tcase 'h':\n\t\tcase 'H':\n\t\t\tprint_help ();\n\t\t\treturn 0;\n\t\tcase 'i':\n\t\t\tv4args = v4args | CIDR_INFO;\n\t\t\tbreak;\n\t\tcase 'n':\n\t\t\tv4args = v4args | NET_INFO;\n\t\t\tm_argv4.numnets = atoi (optarg);\n\t\t\tbreak;\n\t\tcase 'r':\n\t\t\tv6args = v6args | V6REV;\n\t\t\tbreak;\n\t\tcase 's':\n\t\t\ty = getsplitnumv4 (optarg, &m_argv4.splitmask);\n\t\t\tif (!y) {\n\t\t\t\tv4args = v4args | V4SPLIT;\n\t\t\t} else {\n\t\t\t\tprintf\n\t\t\t\t    (\"-[ERR : Invalid IPv4 splitmask, unable to split]\\n\");\n\t\t\t\tsplit_errv4 = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'S':\n\t\t\ty = getsplitnumv6 (optarg, &m_argv6.v6splitmask, &m_argv6.v6splitnum);\n\t\t\tif (!y) {\n\t\t\t\tv6args = v6args | V6SPLIT;\n\t\t\t} else {\n\t\t\t\tprintf\n\t\t\t\t    (\"-[ERR : Invalid IPv6 splitmask, unable to split]\\n\");\n\t\t\t\tsplit_errv6 = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 't':\n\t\t\tv6args = v6args | V6_INFO;\n\t\t\tbreak;\n\t\tcase 'u':\n\t\t\tv4args = v4args | V4VERBSPLIT;\n\t\t\tv6args = v6args | V6VERBSPLIT;\n\t\t\tbreak;\n\t\tcase 'v':\n\t\tcase 'V':\n\t\t\tprint_version ();\n\t\t\treturn 0;\n\t\tcase 'w':\n\t\t\tv4args = v4args | C_WILDCARD;\n\t\t\tbreak;\n\t\tcase 'x':\n\t\t\tv4args = v4args | CF_BITMAP;\n\t\t\tbreak;\n\t\tcase '?':\n\t\t\tprintf (\"Try '%s -h' for more information.\\n\", NAME);\n\t\t\treturn 0;\n\t\tcase '4':\n\t\t\tsafe_strncpy (abox_cur->str, optarg);\n\t\t\tabox_cur->type = AT_V4;\n\t\t\tabox_cur->resolv = 1;\n\t\t\tif (validate_netmask (optarg) == 2)\n\t\t\t\tabox_cur->resolv = 0;\n\t\t\tif (validate_v4addr (optarg) == 1)\n\t\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\n\t\t\tbreak;\n\t\tcase '6':\n\t\t\tsafe_strncpy (abox_cur->str, optarg);\n\t\t\tabox_cur->type = AT_V6;\n\t\t\tabox_cur->resolv = 1;\n\t\t\tif (validate_v6addr (expaddr) == 1)\n\t\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\n\t\t\tbreak;\n\t\tcase 'I':\n\t\t\tsafe_strncpy (abox_cur->str, optarg);\n\t\t\tabox_cur->type = AT_INT;\n\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur = new_arg (abox_cur);\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tprint_short_help ();\n\t\t\treturn 0;\n\t\t}\n\t}\n\n\tif (!v4args && !v6args && (split_errv4 || split_errv6)) {\n\t\tprintf (\"-[ERR : No valid commands recieved]\\n\");\n\t\tfree_boxargs (abox_start);\n\t\treturn -1;\n\t}\n\tif (split_errv4 || split_errv6)\n\t\tprintf (\"\\n\");\n\n\targcount = optind;\n\t/*\n\t * Our default v4 and v6 options, hopefully what's mostly used.\n\t */\n\tif (!v4args)\n\t\tv4args = CIDR_INFO;\n\tif (!v6args)\n\t\tv6args = V6_INFO;\n\tif (m_argv4.numnets < 1)\n\t\tm_argv4.numnets = -1;\n\n\tif (argv[argcount]) {\n\t\tif (argv[argcount][0] == '-' && argv[argcount][1] == '\\0')\n\t\t\tparse_stdin = 1;\n\t} else {\n\t\tif (abox_start->str[0] == '\\0') {\n\t\t\tprint_short_help ();\n\t\t\tfree_boxargs (abox_start);\n\t\t\treturn 0;\n\t\t}\n\t}\n\n\t/*\n\t * Populate our argumentbox.\n\t * (Ie., see what's on the commandline).\n\t */\n\tif (!parse_stdin && argv[argcount]) {\n\t\tabox_cur = get_boxargs (argc, argv, argcount, abox_cur);\n\n\t\tabox_tmp = abox_start;\n\t\twhile (abox_tmp->next != abox_cur) {\n\t\t\tabox_tmp = abox_tmp->next;\n\t\t}\n\t\tabox_tmp->next=NULL;\n\t\tfree (abox_cur);\n\t\tabox_cur = NULL;\n\t}\n\n\tabox_tmp = abox_start;\n\tif (!resolve) {\n\t\twhile (abox_tmp) {\n\t\t\tabox_tmp->resolv = 0;\n\t\t\tabox_tmp = abox_tmp->next;\n\t\t}\n\t}\n\n#if 0\n\tshow_abox (abox_start);\n#endif\n\n\t/*\n\t * This will try to gather information about the network interfaces\n\t * present on the local machine.\n\t */\n\tif_start = NULL;\n\tif_cur = NULL;\n\tif (!(if_cur = if_start = get_if_ext ())) {\n\t\tprintf\n\t\t    (\"-[INFO : Unable to retrieve interface information]\\n\");\n\t\tprintf\n\t\t    (\"-[INFO : Will only parse none interface arguments]\\n\\n\");\n\t}\n\n\tif (!parse_stdin)\n\t\tifarg_cur = ifarg_start = parse_abox (abox_start, if_start);\n\n\tif (!ifarg_start && !parse_stdin) {\n\t\tprintf (\"-[FATAL : No valid commandline arguments found]\\n\\n\");\n\t\treturn -1;\n\t}\n\n\tiffound = 0;\n\tindex = 0;\n\tifarg_cur = ifarg_start;\n\tsafe_bzero (oldcmdstr);\n\twhile (ifarg_cur && !parse_stdin) {\n\t\tif (strlen (ifarg_cur->cmdstr) > 0) {\n\t\t\tif (!strcmp (ifarg_cur->cmdstr, oldcmdstr))\n\t\t\t\tindex++;\n\t\t\telse\n\t\t\t\tindex = 0;\n\t\t}\n\t\telse {\n\t\t\tindex = 0;\n\t\t}\n\t\tiffound += out_cmdline (ifarg_cur, v4args, m_argv4, v6args, m_argv6, 0, index);\n\t\tsafe_strncpy (oldcmdstr, ifarg_cur->cmdstr);\n\t\tifarg_cur = ifarg_cur->next;\n\t}\n\n\tz = 0;\n\ty = 1;\n\twhile (parse_stdin && y > -1) {\n\t\tstdinarg[0] = (char *) malloc (128);\n\t\tstdinarg[1] = (char *) malloc (128);\n\t\tstdinarg[2] = NULL;\n\t\tfor (x = 0; x < 2; x++)\n\t\t\tbzero ((char *) stdinarg[x], 128);\n\t\ty = get_stdin (stdinarg);\n\t\tif (y > 0) {\n\t\t\tm = 2;\n\t\t\tif (stdinarg[1][0] == '\\0') {\n\t\t\t\tfree (stdinarg[1]);\n\t\t\t\tstdinarg[1] = NULL;\n\t\t\t\tm = 1;\n\t\t\t}\n\t\t\tabox_cur = get_boxargs (m, stdinarg, 0, abox_cur);\n\t\t\tabox_tmp = abox_start;\n\t\t\twhile (abox_tmp->next != abox_cur && abox_tmp != abox_cur) {\n\t\t\t\tabox_tmp = abox_tmp->next;\n\t\t\t}\n\t\t\tabox_tmp->next=NULL;\n\t\t\tfree (abox_cur);\n\t\t\tabox_cur = NULL;\n\n\t\t\tabox_tmp = abox_start;\n\t\t\tif (!resolve) {\n\t\t\t\twhile (abox_tmp) {\n\t\t\t\t\tabox_tmp->resolv = 0;\n\t\t\t\t\tabox_tmp = abox_tmp->next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tifarg_cur = ifarg_start = parse_abox (abox_start, if_start);\n\n\t\t\tif (ifarg_start) {\n\t\t\t\tiffound = 0;\n\t\t\t\tindex = 0;\n\t\t\t\tifarg_cur = ifarg_start;\n\t\t\t\tsafe_bzero (oldcmdstr);\n\t\t\t\twhile (ifarg_cur) {\n\t\t\t\t\tif (strlen (ifarg_cur->cmdstr) > 0) {\n\t\t\t\t\t\tif (!strcmp (ifarg_cur->cmdstr, oldcmdstr))\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t}\n\t\t\t\t\tiffound += out_cmdline (ifarg_cur, v4args, m_argv4, v6args, m_argv6, 0, index);\n\t\t\t\t\tsafe_strncpy (oldcmdstr, ifarg_cur->cmdstr);\n\t\t\t\t\tifarg_cur = ifarg_cur->next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tz = 1;\n\t\t\tfree_if (ifarg_start);\n\t\t\tfree_boxargs (abox_start);\n\t\t\tabox_start = abox_cur = (struct argbox *) malloc (sizeof (struct argbox));\n\t\t\tsafe_bzero (abox_cur->str);\n\t\t\tabox_cur->type = 0;\n\t\t\tabox_cur->resolv = 0;\n\t\t\tabox_cur->next = NULL;\n\t\t}\n\t\tfor (x = 0; x < 2; x++) {\n\t\t\tif (stdinarg[x]) {\n\t\t\t\tfree (stdinarg[x]);\n\t\t\t\tstdinarg[x] = NULL;\n\t\t\t}\n\t\t}\n\t\tif (y == -1)\n\t\t\tprintf (\"\\n-[ERR : Problem parsing stdin]\\n\\n\");\n\t}\n\tif (parse_stdin) {\n\t\tfree (stdinarg[0]);\n\t\tfree (stdinarg[1]);\n\t}\n\n\tif (!z && parse_stdin)\n\t\tprintf (\"-[FATAL : No arguments found on stdin]\\n\\n\");\n\n\tif (!parse_stdin)\n\t\tfree_if (ifarg_start);\n\tfree_if (if_start);\n\n\treturn iffound;\n}\n"
  }
]