summaryrefslogtreecommitdiff
path: root/support/intex
diff options
context:
space:
mode:
Diffstat (limited to 'support/intex')
-rw-r--r--support/intex/AUTHORS2
-rw-r--r--support/intex/COPYING674
-rw-r--r--support/intex/ChangeLog399
-rw-r--r--support/intex/INSTALL234
-rw-r--r--support/intex/MANIFEST24
-rw-r--r--support/intex/MANIFEST.in10
-rw-r--r--support/intex/Makefile728
-rw-r--r--support/intex/Makefile.am51
-rw-r--r--support/intex/Makefile.in728
-rw-r--r--support/intex/NEWS0
l---------support/intex/README1
-rw-r--r--support/intex/README.md130
-rw-r--r--support/intex/RELEASE1
-rw-r--r--support/intex/TODO73
-rw-r--r--support/intex/aclocal.m4839
-rw-r--r--support/intex/bin/config.sh12
-rw-r--r--support/intex/bin/config.sh.in12
-rwxr-xr-xsupport/intex/bin/get_release18
-rwxr-xr-xsupport/intex/bin/increase_release21
-rwxr-xr-xsupport/intex/bin/tag_release30
-rw-r--r--support/intex/config.log215
-rwxr-xr-xsupport/intex/config.status947
-rwxr-xr-xsupport/intex/configure3621
-rw-r--r--support/intex/configure.ac24
-rw-r--r--support/intex/doc/Makefile416
-rw-r--r--support/intex/doc/Makefile.am17
-rw-r--r--support/intex/doc/Makefile.in416
-rw-r--r--support/intex/doc/mkintex.1.gzbin0 -> 1773 bytes
-rw-r--r--support/intex/doc/mkintex.xml208
-rw-r--r--support/intex/doc/mkintex.xml.in208
-rwxr-xr-xsupport/intex/install_latest_release.sh6
-rw-r--r--support/intex/latex/FILES17
-rw-r--r--support/intex/latex/Makefile325
-rw-r--r--support/intex/latex/Makefile.am16
-rw-r--r--support/intex/latex/Makefile.in325
-rw-r--r--support/intex/latex/intex.aux108
-rw-r--r--support/intex/latex/intex.dtx1519
-rw-r--r--support/intex/latex/intex.glo1
-rw-r--r--support/intex/latex/intex.idx6
-rw-r--r--support/intex/latex/intex.ilg6
-rw-r--r--support/intex/latex/intex.ind25
-rw-r--r--support/intex/latex/intex.ito63
-rw-r--r--support/intex/latex/intex.itx84
-rw-r--r--support/intex/latex/intex.log730
-rw-r--r--support/intex/latex/intex.out16
-rw-r--r--support/intex/latex/intex.pdfbin0 -> 528600 bytes
-rw-r--r--support/intex/latex/intex.rid64
-rw-r--r--support/intex/latex/intex.rix46
-rw-r--r--support/intex/latex/intex.sty407
-rw-r--r--support/intex/latex/intex.tmp8
-rw-r--r--support/intex/lib/intex/__init__.py0
-rw-r--r--support/intex/lib/intex/acronym_entry.py247
-rw-r--r--support/intex/lib/intex/concept_entry.py274
-rw-r--r--support/intex/lib/intex/config.py43
-rw-r--r--support/intex/lib/intex/config.py.in43
-rw-r--r--support/intex/lib/intex/entry.py518
-rw-r--r--support/intex/lib/intex/index.py495
-rw-r--r--support/intex/lib/intex/paren_parser.py209
-rw-r--r--support/intex/lib/intex/person_entry.py172
-rw-r--r--support/intex/lib/intex/stack.py38
-rw-r--r--support/intex/lib/intex/test_paren_parser.py148
-rw-r--r--support/intex/lib/intex/utils.py108
-rwxr-xr-xsupport/intex/pack_next_release.sh10
-rwxr-xr-xsupport/intex/release.sh5
-rw-r--r--support/intex/rewritten.itx118
-rw-r--r--support/intex/setup.cfg10
-rw-r--r--support/intex/setup.cfg.in10
-rw-r--r--support/intex/setup.py79
-rw-r--r--support/intex/setup.py.in79
-rw-r--r--support/intex/src/Makefile395
-rw-r--r--support/intex/src/Makefile.am12
-rw-r--r--support/intex/src/Makefile.in395
-rwxr-xr-xsupport/intex/src/mkintex215
-rw-r--r--support/intex/src/mkintex.py215
-rw-r--r--support/intex/src/post-install.sh24
-rw-r--r--support/intex/src/post-install.sh.in24
-rw-r--r--support/intex/src/post-uninstall.sh24
-rw-r--r--support/intex/src/post-uninstall.sh.in24
-rw-r--r--support/intex/template.itx19
-rw-r--r--support/intex/test.itx347
80 files changed, 18131 insertions, 0 deletions
diff --git a/support/intex/AUTHORS b/support/intex/AUTHORS
new file mode 100644
index 0000000000..b12a0b8db5
--- /dev/null
+++ b/support/intex/AUTHORS
@@ -0,0 +1,2 @@
+Developers:
+ Martin Thorsen Ranang <mtr@ranang.org>
diff --git a/support/intex/COPYING b/support/intex/COPYING
new file mode 100644
index 0000000000..94a9ed024d
--- /dev/null
+++ b/support/intex/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/support/intex/ChangeLog b/support/intex/ChangeLog
new file mode 100644
index 0000000000..05e687c6ee
--- /dev/null
+++ b/support/intex/ChangeLog
@@ -0,0 +1,399 @@
+[2013-03-12 02:57:42 +0100] Added example of rendered PDF.
+
+[2013-03-12 02:55:36 +0100] Updated autotools config.
+
+[2013-03-12 02:46:37 +0100] Cleaned up directory layout.
+
+[2010-01-03 01:00:37 +0000] Fixed bug related to correct typesetting of explicitly provided hyphenation hints.
+
+[2010-01-03 00:22:57 +0000] Updated documentation. Added examples. Increased version number.
+
+
+[2010-01-03 00:07:09 +0000] Fixed erroneous typesetting of explicitly provided hyphenation hints in index entries. For example, it is now possible to have entries like compound@com\-pound in the InTeX file.
+
+[2010-01-03 00:02:13 +0000] Updated documentation.
+
+[2010-01-03 00:01:54 +0000] Added dash-compounded entry with explicit hyphenation hints. Also added Emacs mode hints.
+
+[2009-08-17 05:39:26 +0000] Removed superfluous debug messages.
+
+
+[2009-08-17 05:37:56 +0000] Fixed index 'see' references for acronyms.
+
+
+[2009-08-17 05:24:42 +0000] Updated documentation. Added superfluous debug statements. Made explicitly sorted, specially typeset acronyms behave as intended.
+
+
+[2009-03-29 00:17:41 +0000] Added support for explicit sorting of acronym entries too.
+
+
+[2009-03-28 14:18:08 +0000] Fixed bug related to the correct handling of explicitly sorted
+subentries.
+
+
+[2009-03-28 10:17:52 +0000] Made sure explicit sorting of sub-entries is handeled correctly.
+
+
+[2009-03-27 15:51:50 +0000] Development release.
+
+
+[2009-03-27 15:47:41 +0000] Update.
+
+
+
+[2009-03-27 15:45:26 +0000] Fixed sort_as bug.
+
+
+[2009-03-27 15:39:31 +0000] Support for proper handling of children of :sort_as= elements.
+
+
+
+[2009-03-27 07:25:40 +0000] Adjusted the dist procedure.
+
+
+[2009-03-27 07:23:32 +0000] Added support for index comments and explicitly grouping of sort_as
+values.
+
+
+[2009-03-27 07:09:00 +0000] Added support for meta directive :sort_as=<key> for concept entries.
+Added script for packaging.
+
+
+[2008-12-08 23:39:05 +0000] Cleaned up some code and added compatibility support for the Beamer package.
+
+[2008-12-08 23:37:51 +0000] Cleaned up some code and added compatibility support for the Beamer package.
+
+[2008-11-10 10:36:55 +0000] New version.
+
+[2008-11-10 10:36:07 +0000] Added support for handling recursive \@include{}-statements from within .aux files.
+
+[2008-10-30 21:47:27 +0000] Made references from ConceptEntry to AcronymEntry expand to the long form of the acronym.
+
+[2008-10-30 17:21:19 +0000] New release.
+
+[2008-10-30 17:20:33 +0000] Added support for referring from plain entries to acronym entries.
+
+[2008-10-23 13:58:00 +0000] Implemented support for explicitly typesetting a concept in short, long, or full format with the macros \coS, \coL, and \coF, respectively.
+
+[2008-10-16 10:31:02 +0000] Added copyright information and improved documentation.
+
+[2008-10-14 19:38:31 +0000] Added singular -> plural conversion rule for 'ysis' -> 'yses' (as in analysis).
+
+[2008-10-14 09:23:23 +0000] Added special handling of front-, main-, and backmatter in books and reports.
+
+[2008-10-13 23:34:32 +0000] Fixed index name. Removed non-% ending code lines.
+
+[2008-01-16 17:14:42 +0000] Commented out unneeded counter.
+
+
+[2007-11-06 22:09:32 +0000] Added support for inflection of 'latin' words.
+
+[2007-11-06 22:06:35 +0000] Added support for inflection of 'latin' words.
+
+[2007-11-06 15:50:38 +0000] Updated copyright and e-mail strings.
+
+[2007-11-06 15:37:16 +0000] Added capitalization of keywords, so that they are recognized if referred to with a capital first letter in text. For example \co{Carnivore} will match "carnivore".
+
+[2007-11-06 08:28:20 +0000] Removed commented-out debugging code.
+
+[2007-11-05 20:56:48 +0000] Sat all SVN properties.
+
+[2007-11-05 20:53:20 +0000] Added Makefile.am for latex/. Refactored the different Entry sub-classes.
+
+[2007-07-22 13:46:24 +0000] Bumped version.
+
+
+[2007-07-22 13:45:23 +0000] Now, acronym sub-entries will be unescaped after expansion.
+
+[2007-07-20 14:36:58 +0000] Bumped version.
+
+
+[2007-07-20 14:36:16 +0000] Corrected erroneous parsing of PERSON entries after commas were removed from the field separators.
+
+[2007-07-20 14:35:14 +0000] Corrected erroneous parsing of PERSON entries after commas were removed from the field separators.
+
+[2007-07-20 14:27:57 +0000] Added test for mandatory output index filename.
+
+[2007-07-20 14:07:16 +0000] Corrected erroneous parsing of PERSON entries after commas were removed from the field separators.
+
+[2007-07-20 13:28:57 +0000] Bumped version.
+
+
+[2007-07-20 13:27:54 +0000] Removed commas (',') from the FIELD_DELIMITERS. Really did it this time.
+
+[2007-07-20 13:19:49 +0000] Bumped version.
+-Denne linjen og de som er under vil bli ignorert--
+
+M configure.ac
+
+
+[2007-07-20 13:18:34 +0000] Removed commas (',') from the FIELD_DELIMITERS.
+
+[2007-07-19 23:28:46 +0000] Bumped version.
+
+
+[2007-07-19 23:27:52 +0000] Fixed typo.
+
+[2007-07-19 23:27:16 +0000] Fixed 'see' cross-references so that multiple cross-references do not accumulate in the typeset index.
+
+[2007-07-19 14:30:05 +0000] Detected new syntax error situation when no current type ('*ACRONYMS*', '*CONCEPTS*', or '*PERSONS*') has been defined.
+
+[2007-07-19 12:06:06 +0000] Updated the post-[un]install.sh templates.
+
+[2007-07-19 11:45:50 +0000] Updated the post-[un]install.sh templates.
+
+[2007-07-19 11:44:01 +0000] Updated the post-[un]install.sh templates.
+
+[2007-07-19 11:43:23 +0000] Updated the post-[un]install.sh templates.
+
+[2007-07-19 11:19:37 +0000] Bumped release.
+
+
+[2007-07-19 11:15:14 +0000] Added missing directory.
+
+[2007-07-19 11:14:41 +0000] Added missing capitalizatoin to the title.
+
+[2007-07-19 11:14:01 +0000] Improved the README.
+
+[2007-07-19 11:13:07 +0000] Fixed a problem with the packaging of man pages inside the RPM. The RPM build step compressed the man page, and could therefore not relocate it (without the .gz suffix). By adding the man page already compressed to the distributed files, the problem is solved.
+
+[2007-07-19 11:12:49 +0000] Fixed a problem with the packaging of man pages inside the RPM. The RPM build step compressed the man page, and could therefore not relocate it (without the .gz suffix). By adding the man page already compressed to the distributed files, the problem is solved.
+
+[2007-07-19 11:12:29 +0000] Fixed a problem with the packaging of man pages inside the RPM. The RPM build step compressed the man page, and could therefore not relocate it (without the .gz suffix). By adding the man page already compressed to the distributed files, the problem is solved.
+
+[2007-07-19 11:12:14 +0000] Fixed a problem with the packaging of man pages inside the RPM. The RPM build step compressed the man page, and could therefore not relocate it (without the .gz suffix). By adding the man page already compressed to the distributed files, the problem is solved.
+
+[2007-07-19 11:11:38 +0000] Fixed a problem with the packaging of man pages inside the RPM. The RPM build step compressed the man page, and could therefore not relocate it (without the .gz suffix). By adding the man page already compressed to the distributed files, the problem is solved.
+
+[2007-07-19 01:06:39 +0000] Converted the man page to DocBook formatting. Now docbook2x-man and docbook2x-texi may be used to generate man pages and texinfo documentation, respectively.
+
+[2007-07-19 00:57:18 +0000] Converted the man page to DocBook formatting. Now docbook2x-man and docbook2x-texi may be used to generate man pages and texinfo documentation, respectively.
+
+[2007-07-19 00:57:05 +0000] Converted the man page to DocBook formatting. Now docbook2x-man and docbook2x-texi may be used to generate man pages and texinfo documentation, respectively.
+
+[2007-07-19 00:25:00 +0000] Added a man page for the mkintex command.
+
+[2007-07-18 21:16:21 +0000] Added install path information.
+
+[2007-07-18 12:49:41 +0000] Updated files to ensure package building works OK.
+
+
+[2007-07-18 12:40:34 +0000] Updated the aclocal.m4 file.
+
+[2007-07-18 12:39:32 +0000] Commented out gettext-macro since it is not needed for this project.
+
+[2007-07-18 12:33:41 +0000] Added missing aclocal.m4.
+
+[2007-07-18 11:52:26 +0000] Added auto{make,conf} framework files. This is a step in the process of building Deb and RPM packages.
+
+[2007-07-18 11:52:15 +0000] Added auto{make,conf} framework files. This is a step in the process of building Deb and RPM packages.
+
+[2007-07-18 11:49:26 +0000] Added auto{make,conf} framework files. This is a step in the process of building Deb and RPM packages.
+
+[2007-07-18 11:38:50 +0000] Added scripts to handle build and release info.
+
+[2007-07-18 11:22:28 +0000] Adjusted the documentation.
+
+[2007-07-18 11:10:10 +0000] Implemented aliasing of plain and person concepts. May do it for acronym entries later, if it becomes necessary.
+
+[2007-07-18 11:07:18 +0000] Improved the documentation. Added several \<begin|end>{macro}-sections. Changed enumeration in the documentation of case-switches to descriptions.
+
+[2007-07-18 11:04:59 +0000] Improved the documentation. Added several \<begin|end>{macro}-sections. Changed enumeration in the documentation of case-switches to descriptions.
+
+[2007-07-17 19:55:46 +0000] Fixed bug in escape_aware_[r]split caused by wrong 'sliding window' size due to ignoring length of delimiter.
+
+[2007-07-17 19:54:15 +0000] Fixed bug in escape_aware_[r]split caused by wrong 'sliding window' size due to ignoring length of delimiter.
+
+[2007-07-17 19:48:34 +0000] Sat Subversion keyword properties.
+
+[2007-07-17 18:26:31 +0000] Corrected the implementation of the escape-aware split-function.
+
+[2007-07-17 18:26:24 +0000] Corrected the implementation of the escape-aware split-function.
+
+[2007-07-15 12:07:45 +0000] Implemented compatibility with the hyperref package.
+
+[2007-07-15 12:06:59 +0000] Updated the documentation.
+
+[2007-07-14 00:44:51 +0000] Updated the LaTeX package (and documentation) and the index definition.
+
+[2007-07-14 00:44:13 +0000] Implemented LaTeX index generation and internal indexing.
+
+[2007-07-14 00:43:03 +0000] Added a new file.
+
+[2007-07-14 00:42:50 +0000] Implemented post-preprocessing unescaping of concepts.
+
+[2007-07-10 17:01:51 +0000] Added a syntax error exception.
+
+[2007-07-10 14:22:48 +0000] Sat a lot of properties.
+
+[2007-07-10 14:22:30 +0000] Added new documentation.
+
+[2007-07-10 14:15:17 +0000] Sat a lot of properties. Added new ITX file for the DTX-based documentation.
+
+[2007-07-10 14:14:44 +0000] Sat a lot of properties. Added new ITX file for the DTX-based documentation.
+
+[2007-07-10 13:47:40 +0000] Continuing work on intex.dtx based on a copy of it.
+
+[2007-07-10 13:46:23 +0000] Added directory for holding LaTeX documents.
+
+[2007-07-10 13:37:36 +0000] Implemented first reference index.
+
+[2007-07-10 12:55:46 +0000] Made the entry output formatting more coherent and implemented complete-index printing.
+
+[2007-07-10 00:13:22 +0000] Finally implemented the handling of person-entries too.
+
+[2007-07-09 15:30:37 +0000] Implemented better handling of sub-entries containing grouped, "(...)", information.
+
+[2007-07-09 13:36:07 +0000] Fixed bug that affected erroneously typesetting text instead of placeholders in the index.
+
+[2007-07-09 00:28:24 +0000] Implemented handlig of acronym definitions too.
+
+[2007-07-08 15:22:45 +0000] Updated naming and unit tests for paren_parser module.
+
+[2007-07-08 10:51:24 +0000] Corrected the interpretations of concept entries.
+
+[2007-07-08 10:51:12 +0000] Corrected the interpretations of concept entries.
+
+[2007-07-08 10:49:58 +0000] Corrected the interpretations of concept entries.
+
+[2007-07-07 22:50:14 +0000] Made small changes to the example ITX file (rewritten.itx) and implemented proper expansion of concepts and sub-concepts.
+
+[2007-07-05 18:53:45 +0000] Implemented generation of reference and typeset versions, based on ITX entries.
+
+[2007-07-05 15:24:36 +0000] Added another unit test, which exposed a bug related to the use of non-default separators for the ParenParser's split() method. Fixed the bug.
+
+[2007-07-05 14:13:12 +0000] Implemented a proper parentheses-aware split method.
+
+[2007-07-04 10:31:47 +0000] Renamed s/IndexEntry/Entry/g.
+
+[2007-07-04 10:31:31 +0000] Renamed s/IndexEntry/Entry/g.
+
+[2007-07-04 10:31:15 +0000] Renamed s/IndexEntry/Entry/g.
+
+[2007-07-04 06:49:00 +0000] Added TODO file.
+
+[2007-07-03 13:54:17 +0000] Added a Stack class.
+
+[2007-07-03 11:13:58 +0000] Added several comments and examples to the example ITX file.
+
+[2007-07-03 07:16:54 +0000] Sat all of the svn:keywords properties.
+
+[2007-07-03 07:14:06 +0000] Refactored the code by splitting code into library modules.
+
+[2007-07-03 07:08:21 +0000] Refactored the code by splitting code into library modules.
+
+[2007-07-03 06:54:32 +0000] Added new module 'intex'.
+
+[2007-07-03 06:32:23 +0000] Added a source directory.
+
+[2007-07-03 06:31:34 +0000] Added a Makefile.
+
+[2007-07-03 06:31:20 +0000] Added a library directory 'lib'.
+
+[2007-07-02 13:56:35 +0000] Continued the implementation of the parenparser's split method.
+
+[2007-03-01 20:24:33 +0000] Added another test. Cleaned up ParenParser module.
+
+[2007-02-28 18:32:37 +0000] Sat some keywords.
+
+[2007-02-28 18:31:46 +0000] Added two test cases.
+
+[2007-02-28 18:28:14 +0000] Added two test cases.
+
+[2007-02-26 10:51:42 +0000] Added parser exception and better comments.
+
+[2007-02-15 23:03:06 +0000] Implemented the basic functionality of the ParenParser.
+
+[2007-02-15 23:02:43 +0000] Implemented the basic functionality of the ParenParser.
+
+[2007-02-15 14:23:50 +0000] Doing some code tests in test.py.
+
+[2007-02-15 14:15:08 +0000] Doing some code tests in test.py.
+
+[2007-02-15 14:14:55 +0000] Doing some code tests in test.py.
+
+[2007-02-15 11:10:56 +0000] Spell-checked the source code.
+
+[2007-02-14 23:38:55 +0000] Improved placeholders parsing implementation.
+
+[2007-02-14 23:28:51 +0000] Implemented basic meaning of placeholders.
+
+[2007-02-14 17:24:31 +0000] Cleaned up the code related to inflections a bit.
+
+
+[2007-02-14 17:13:55 +0000] Got further with the inflection implementation.
+
+
+[2007-02-14 12:33:00 +0000] Refactored a bit. Cleaned up code. Changed the mail address.
+
+[2007-02-14 12:28:25 +0000] Refactored a bit. Cleaned up code. Changed the mail address.
+
+[2007-02-13 14:09:30 +0000] Added necessary functions for storing the entries in an adquate datastructure.
+
+[2007-02-13 13:56:39 +0000] Moving along.
+
+[2007-02-13 11:17:06 +0000] Improved logging/reporting facility.
+
+[2007-02-12 14:47:48 +0000] Implemented a rather simple parser.
+
+[2007-02-12 11:03:19 +0000] Added parser regexps.
+
+[2007-02-12 06:44:11 +0000] First version of handler table implemented.
+
+[2007-02-12 06:43:17 +0000] First version of handler table implemented.
+
+[2007-02-11 18:48:09 +0000] Trying to find an adequate and user-friendly format for the InTeX-files.
+
+[2007-02-10 16:06:42 +0000] Addded new file.
+
+[2007-02-10 16:06:20 +0000] Addded new file.
+
+[2007-02-09 21:21:00 +0000] Added test index.
+
+[2007-02-09 13:17:22 +0000] Added property.
+
+
+[2007-02-09 13:15:17 +0000] Added new generation of the make-InTeX program.
+
+[2007-02-09 13:13:13 +0000] Cleaning up.
+
+[2007-02-09 13:12:28 +0000] Cleaning up, and added two missing files.
+
+[2007-02-09 13:12:15 +0000] Cleaning up, and added two missing files.
+
+[2007-02-09 13:08:47 +0000] Added new directory.
+
+[2007-02-09 13:07:59 +0000] Before rewrite.
+
+[2006-04-13 13:09:30 +0000] Fixed verso/recto-placement of margin notes (at least for two-sided printing.
+
+[2006-04-13 12:25:43 +0000] Changed behavior from rewriting the .aux file to writing (and later importing) an external file .ito.
+
+[2006-03-29 22:11:32 +0000] Update. Commented out a lot of warnings.
+
+[2006-03-22 10:13:07 +0000] Refactoring in process.
+
+[2006-03-21 13:54:15 +0000] Refactoring in process.
+
+[2006-03-21 13:51:24 +0000] Refactoring in process.
+
+[2006-03-21 13:51:03 +0000] Refactoring in process.
+
+[2006-03-21 13:50:36 +0000] Refactoring in process.
+
+[2006-03-21 13:50:23 +0000] Refactoring in process.
+
+[2006-03-21 13:50:01 +0000] Refactoring in process.
+
+[2006-03-21 13:49:00 +0000] Refactoring in process.
+
+[2006-03-20 22:17:56 +0000] Refactoring in process.
+
+[2006-03-20 10:57:15 +0000] Backup, before quick refactoring.
+
+[2006-02-13 22:16:15 +0000] Improved makeintex source code.
+
+[2006-02-13 22:13:01 +0000] Improved makeintex source code.
+
+[2006-02-13 20:04:07 +0000] Initial module layout
+
diff --git a/support/intex/INSTALL b/support/intex/INSTALL
new file mode 100644
index 0000000000..5458714e1e
--- /dev/null
+++ b/support/intex/INSTALL
@@ -0,0 +1,234 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
+2006 Free Software Foundation, Inc.
+
+This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package. The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system.
+
+ Running `configure' might take a while. While running, it prints
+ some messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+Some systems require unusual options for compilation or linking that the
+`configure' script does not know about. Run `./configure --help' for
+details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you can use GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory. After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+Installation Names
+==================
+
+By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc. You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+There may be some features `configure' cannot figure out automatically,
+but needs to determine by the type of machine the package will run on.
+Usually, assuming the package is built to be run on the _same_
+architectures, `configure' can figure that out, but if it prints a
+message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+If you want to set default values for `configure' scripts to share, you
+can create a site shell script called `config.site' that gives default
+values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf bug. Until the bug is fixed you can use this workaround:
+
+ CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+`configure' recognizes the following options to control how it operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/support/intex/MANIFEST b/support/intex/MANIFEST
new file mode 100644
index 0000000000..cb4818a2bd
--- /dev/null
+++ b/support/intex/MANIFEST
@@ -0,0 +1,24 @@
+# file GENERATED by distutils, do NOT edit
+AUTHORS
+COPYING
+ChangeLog
+INSTALL
+NEWS
+README
+setup.cfg
+setup.py
+doc/mkintex.1.gz
+latex/intex.pdf
+latex/intex.sty
+lib/intex/__init__.py
+lib/intex/acronym_entry.py
+lib/intex/concept_entry.py
+lib/intex/config.py
+lib/intex/entry.py
+lib/intex/index.py
+lib/intex/paren_parser.py
+lib/intex/person_entry.py
+lib/intex/stack.py
+lib/intex/test_paren_parser.py
+lib/intex/utils.py
+src/mkintex
diff --git a/support/intex/MANIFEST.in b/support/intex/MANIFEST.in
new file mode 100644
index 0000000000..8548138a6d
--- /dev/null
+++ b/support/intex/MANIFEST.in
@@ -0,0 +1,10 @@
+include AUTHORS
+include ChangeLog
+include COPYING
+include INSTALL
+include NEWS
+include README
+include doc/mkintex.1.gz
+include latex/intex.sty
+include latex/intex.pdf
+include src/mkintex
diff --git a/support/intex/Makefile b/support/intex/Makefile
new file mode 100644
index 0000000000..ea7b29024a
--- /dev/null
+++ b/support/intex/Makefile
@@ -0,0 +1,728 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+pkgdatadir = $(datadir)/intex
+pkgincludedir = $(includedir)/intex
+pkglibdir = $(libdir)/intex
+pkglibexecdir = $(libexecdir)/intex
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/setup.cfg.in \
+ $(srcdir)/setup.py.in $(top_srcdir)/bin/config.sh.in \
+ $(top_srcdir)/configure $(top_srcdir)/lib/intex/config.py.in \
+ AUTHORS COPYING ChangeLog INSTALL NEWS TODO install-sh missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = setup.cfg setup.py bin/config.sh \
+ lib/intex/config.py
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir dist dist-all distcheck
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ if test -d "$(distdir)"; then \
+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -rf "$(distdir)" \
+ || { sleep 5 && rm -rf "$(distdir)"; }; \
+ else :; fi
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = ${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11
+AMTAR = $${TAR-tar}
+AUTOCONF = ${SHELL} /home/mtr/projects/intex/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/mtr/projects/intex/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/mtr/projects/intex/missing --run automake-1.11
+AWK = gawk
+CYGPATH_W = echo
+DEFS = -DPACKAGE_NAME=\"intex\" -DPACKAGE_TARNAME=\"intex\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"intex\ 1.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"intex\" -DVERSION=\"1.8.0\"
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LIBOBJS =
+LIBS =
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/mtr/projects/intex/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+PACKAGE = intex
+PACKAGE_BUGREPORT =
+PACKAGE_NAME = intex
+PACKAGE_STRING = intex 1.8.0
+PACKAGE_TARNAME = intex
+PACKAGE_URL =
+PACKAGE_VERSION = 1.8.0
+PATH_SEPARATOR = :
+PYTHON = /usr/bin/python2.7
+PYTHON_EXEC_PREFIX = ${exec_prefix}
+PYTHON_PLATFORM = linux2
+PYTHON_PREFIX = ${prefix}
+PYTHON_VERSION = 2.7
+SET_MAKE =
+SHELL = /bin/bash
+STRIP =
+VERSION = 1.8.0
+abs_builddir = /home/mtr/projects/intex
+abs_srcdir = /home/mtr/projects/intex
+abs_top_builddir = /home/mtr/projects/intex
+abs_top_srcdir = /home/mtr/projects/intex
+am__leading_dot = .
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build_alias =
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host_alias =
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/mtr/projects/intex/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgpyexecdir = ${pyexecdir}/intex
+pkgpythondir = ${pythondir}/intex
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+pyexecdir = ${exec_prefix}/lib/python2.7/dist-packages
+pythondir = ${prefix}/lib/python2.7/dist-packages
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix =
+top_builddir = .
+top_srcdir = .
+
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id$
+#
+SUBDIRS = src latex doc
+ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = config.rpath m4/ChangeLog m4/ChangeLog src/*.py #lib/
+pysetyp = setup.py
+GET_RELEASE = $(top_srcdir)/bin/get_release
+RELEASE := $(shell $(GET_RELEASE))
+DISTDIR = $(top_srcdir)/dist
+all: all-recursive
+
+.SUFFIXES:
+am--refresh: Makefile
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+setup.cfg: $(top_builddir)/config.status $(srcdir)/setup.cfg.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+setup.py: $(top_builddir)/config.status $(srcdir)/setup.py.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+bin/config.sh: $(top_builddir)/config.status $(top_srcdir)/bin/config.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+lib/intex/config.py: $(top_builddir)/config.status $(top_srcdir)/lib/intex/config.py.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -test -n "$(am__skip_mode_fix)" \
+ || find "$(distdir)" -type d ! -perm -755 \
+ -exec chmod u+rwx,go+rx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzip: distdir
+ tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.lz*) \
+ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @test -n '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: trying to run $@ with an empty' \
+ '$$(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ $(am__cd) '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+ dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
+ distcheck distclean distclean-generic distclean-tags \
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
+
+
+release:
+ $(top_srcdir)/bin/get_release
+
+next_release:
+ $(top_srcdir)/bin/increase_release
+
+tag_release:
+ $(top_srcdir)/bin/tag_release
+
+rpm_sign:
+ rpmsign --addsign $(DISTDIR)/$(PACKAGE)-$(VERSION)-$(RELEASE).*.rpm
+
+# rpm: all release tag_release $(pysetyp)
+rpm: all release $(pysetyp)
+ @python $(pysetyp) clean
+ @python $(pysetyp) bdist_rpm --python=$(PYTHON) --release=$(RELEASE) --post-install=$(top_srcdir)/src/post-install.sh --post-uninstall=$(top_srcdir)/src/post-uninstall.sh
+
+deb_sign: deb
+ pushd $(DISTDIR) && dpkg-sig --sign builder $(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb && popd
+
+deb: rpm
+ pushd $(DISTDIR) && fakeroot alien --to-deb --keep-version --scripts $(PACKAGE)-$(VERSION)-$(RELEASE).noarch.rpm && popd
+
+tests:
+ PYTHONPATH=$(top_srcdir)/lib pytest test
+
+#etags --language-force=Python
+etags:
+ etags --language=python \
+ src/* \
+ $$(find lib -name \*\.py |tr '\n' ' ')
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/Makefile.am b/support/intex/Makefile.am
new file mode 100644
index 0000000000..4ff1c4a6ed
--- /dev/null
+++ b/support/intex/Makefile.am
@@ -0,0 +1,51 @@
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id$
+#
+SUBDIRS = src latex doc
+
+ACLOCAL_AMFLAGS = -I m4
+
+EXTRA_DIST = config.rpath m4/ChangeLog m4/ChangeLog src/*.py #lib/
+
+pysetyp = setup.py
+
+PYTHON = /usr/bin/python2.7
+
+GET_RELEASE = $(top_srcdir)/bin/get_release
+
+RELEASE := $(shell $(GET_RELEASE))
+
+DISTDIR = $(top_srcdir)/dist
+
+release:
+ $(top_srcdir)/bin/get_release
+
+next_release:
+ $(top_srcdir)/bin/increase_release
+
+tag_release:
+ $(top_srcdir)/bin/tag_release
+
+rpm_sign:
+ rpmsign --addsign $(DISTDIR)/$(PACKAGE)-$(VERSION)-$(RELEASE).*.rpm
+
+# rpm: all release tag_release $(pysetyp)
+rpm: all release $(pysetyp)
+ @python $(pysetyp) clean
+ @python $(pysetyp) bdist_rpm --python=$(PYTHON) --release=$(RELEASE) --post-install=$(top_srcdir)/src/post-install.sh --post-uninstall=$(top_srcdir)/src/post-uninstall.sh
+
+deb_sign: deb
+ pushd $(DISTDIR) && dpkg-sig --sign builder $(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb && popd
+
+deb: rpm
+ pushd $(DISTDIR) && fakeroot alien --to-deb --keep-version --scripts $(PACKAGE)-$(VERSION)-$(RELEASE).noarch.rpm && popd
+
+tests:
+ PYTHONPATH=$(top_srcdir)/lib pytest test
+
+#etags --language-force=Python
+etags:
+ etags --language=python \
+ src/* \
+ $$(find lib -name \*\.py |tr '\n' ' ')
diff --git a/support/intex/Makefile.in b/support/intex/Makefile.in
new file mode 100644
index 0000000000..cc7382d5d7
--- /dev/null
+++ b/support/intex/Makefile.in
@@ -0,0 +1,728 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/setup.cfg.in \
+ $(srcdir)/setup.py.in $(top_srcdir)/bin/config.sh.in \
+ $(top_srcdir)/configure $(top_srcdir)/lib/intex/config.py.in \
+ AUTHORS COPYING ChangeLog INSTALL NEWS TODO install-sh missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = setup.cfg setup.py bin/config.sh \
+ lib/intex/config.py
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir dist dist-all distcheck
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ if test -d "$(distdir)"; then \
+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -rf "$(distdir)" \
+ || { sleep 5 && rm -rf "$(distdir)"; }; \
+ else :; fi
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PYTHON = /usr/bin/python2.7
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id$
+#
+SUBDIRS = src latex doc
+ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = config.rpath m4/ChangeLog m4/ChangeLog src/*.py #lib/
+pysetyp = setup.py
+GET_RELEASE = $(top_srcdir)/bin/get_release
+RELEASE := $(shell $(GET_RELEASE))
+DISTDIR = $(top_srcdir)/dist
+all: all-recursive
+
+.SUFFIXES:
+am--refresh: Makefile
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+setup.cfg: $(top_builddir)/config.status $(srcdir)/setup.cfg.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+setup.py: $(top_builddir)/config.status $(srcdir)/setup.py.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+bin/config.sh: $(top_builddir)/config.status $(top_srcdir)/bin/config.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+lib/intex/config.py: $(top_builddir)/config.status $(top_srcdir)/lib/intex/config.py.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -test -n "$(am__skip_mode_fix)" \
+ || find "$(distdir)" -type d ! -perm -755 \
+ -exec chmod u+rwx,go+rx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzip: distdir
+ tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.lz*) \
+ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @test -n '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: trying to run $@ with an empty' \
+ '$$(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ $(am__cd) '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+ dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
+ distcheck distclean distclean-generic distclean-tags \
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
+
+
+release:
+ $(top_srcdir)/bin/get_release
+
+next_release:
+ $(top_srcdir)/bin/increase_release
+
+tag_release:
+ $(top_srcdir)/bin/tag_release
+
+rpm_sign:
+ rpmsign --addsign $(DISTDIR)/$(PACKAGE)-$(VERSION)-$(RELEASE).*.rpm
+
+# rpm: all release tag_release $(pysetyp)
+rpm: all release $(pysetyp)
+ @python $(pysetyp) clean
+ @python $(pysetyp) bdist_rpm --python=$(PYTHON) --release=$(RELEASE) --post-install=$(top_srcdir)/src/post-install.sh --post-uninstall=$(top_srcdir)/src/post-uninstall.sh
+
+deb_sign: deb
+ pushd $(DISTDIR) && dpkg-sig --sign builder $(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb && popd
+
+deb: rpm
+ pushd $(DISTDIR) && fakeroot alien --to-deb --keep-version --scripts $(PACKAGE)-$(VERSION)-$(RELEASE).noarch.rpm && popd
+
+tests:
+ PYTHONPATH=$(top_srcdir)/lib pytest test
+
+#etags --language-force=Python
+etags:
+ etags --language=python \
+ src/* \
+ $$(find lib -name \*\.py |tr '\n' ' ')
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/NEWS b/support/intex/NEWS
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/support/intex/NEWS
diff --git a/support/intex/README b/support/intex/README
new file mode 120000
index 0000000000..42061c01a1
--- /dev/null
+++ b/support/intex/README
@@ -0,0 +1 @@
+README.md \ No newline at end of file
diff --git a/support/intex/README.md b/support/intex/README.md
new file mode 100644
index 0000000000..9dddd3f86b
--- /dev/null
+++ b/support/intex/README.md
@@ -0,0 +1,130 @@
+InTeX for LaTeX
+===============
+
+About
+-----
+
+InTeX is a package that adds functionality to LaTeX that eases
+typesetting and indexing of phrases, acronyms, and proper names in a
+consistent manner throughout documents of arbitrary length.
+
+`mkintex(1)` is a preprocessor that interprets index entries specified
+in `.itx` files and generates appropriate entries for LaTeX and `makeindex(1)`.
+
+
+Installation
+------------
+
+From source:
+
+ $ git clone https://github.com/mtr/intex.git
+ $ cd intex
+ $ automake --add-missing
+ $ autoconf
+ $ configure
+ $ make
+
+Create a deb package:
+
+ $ make deb
+
+Install deb package:
+
+ $ dpkg --install dist/intex_1.8.0-1_all.deb
+
+Or, you may also install directly from source:
+
+ $ make install # might need a sudo
+
+
+For furhter information about how to install this package, please consult the
+file INSTALL, located in the top directory of the package.
+
+
+Usage
+-----
+
+The `mkintex(1)` command takes the following options:
+
+ --version
+ show program's version number and exit
+
+ -h, --help
+ show this help message and exit
+
+ -D, --debug
+ whether or not to output debug information
+
+ -V, --verbose
+ whether or not to output verbose information
+
+ -I, --only-build-index
+ only build the internal model of the index
+
+ -O <file>, --ito-file=<file>
+ output the new internal InTeX information to <file> (default:
+ none)
+
+ -o <file>, --index-file=<file>
+ output the new indexing information to <file> (default: none)
+
+ -a <file>, --acrodef-output=<file>
+ output acronym definitions to <file> (default: none)
+
+ -p <file>, --persondef-output=<file>
+ output (person) name definitions to <file> (default: none)
+
+Examples
+--------
+
+Let us assume that you have already written a `latex(1)` document,
+named `<document_name>.tex`, that uses the `InTeX(5)` package.
+Furthermore, we assume that you have defined a set of concepts,
+acronyms, and proper nouns for indexing in a file named
+`<document_name>.itx`. Then, to run this program the standard way,
+first process the document with `latex(1)` (or `pdflatex(1)`) by
+issuing the command
+
+ latex <document_name>
+
+This will process the document once and generate both a DVI file
+(`<document_name>.dvi`)---or a PDF file (`<document_name>.pdf`)---and
+an auxiliary file (`<document_name>.aux`).
+
+Next, run the `mkintex(1)` program
+
+ mkintex <document_name> --index-file=<document_name>.rix
+
+that will use as input both `<document_name>.aux` and
+`<document_name>.itx` to produce two new output files. The first file
+is `<document_name>.ito`, which will be used by `latex(1)` in
+following compilations of `<document_name>.tex`, and
+`<document_name>.rix`, which will be used by `makeindex(1)` to produce
+a proper index for LaTeX to typeset:
+
+ makeindex -o intex.rid intex.rix
+
+After that, we have to run `latex(1)` again to generate a version of the
+document with the defined concepts, acronyms, and proper names properly
+typeset and indexed:
+
+ latex <document_name>
+
+Please note that in the examples above, `<document_name>` is the name
+of the main LaTeX document, without the `.tex` ending.
+
+For more information and examples of how to use the `InTeX(5)`
+`LaTeX(1)` package, please see the file
+[latex/intex.pdf](https://github.com/mtr/intex/blob/master/latex/intex.pdf?raw=true).
+
+You may also consult the `mkintex(1)` man page.
+
+
+Licensing
+---------
+
+For information about this package's license, please see the file
+COPYING in the top directory of the package.
+
+
+-- Martin Thorsen Ranang, 2013-03-12
diff --git a/support/intex/RELEASE b/support/intex/RELEASE
new file mode 100644
index 0000000000..d00491fd7e
--- /dev/null
+++ b/support/intex/RELEASE
@@ -0,0 +1 @@
+1
diff --git a/support/intex/TODO b/support/intex/TODO
new file mode 100644
index 0000000000..1d4fd359fa
--- /dev/null
+++ b/support/intex/TODO
@@ -0,0 +1,73 @@
+TODO List for InTeX -*- mode: org; -*-
+
+* TODO Define all possibly needed variants of each concept.
+ - The different axis include:
+ 1. "typeset as" (full-form/short-form)
+ 2. "inflection" (singular/plural)
+ 3. "sort as"
+
+ - All entries should be typeset identically in the text and in the
+ index.
+ - Both of the following example entries in the *CONCEPTS* section
+ ('|' represents the left-most border)
+
+ |LaTeX@{\LaTeX} cat
+ |LaTeX cat@{\LaTeX cat}
+
+ should result in the following attributes being defined for an
+ IndexEntry instance:
+
+ - reference_singular = 'LaTeX cat'
+ - reference_plural = 'LaTeX cats' # Automatically inflected.
+ - references = {reference_singular, reference_plural}
+
+ - use_singular = '\LaTeX cat'
+ - use_plural = '\LaTeX cats'
+
+ - index_as_singular = (True | False) # Same form as given in the
+ # .itx file.
+
+ and if INDEX_AS_SINGULAR is True, then the index entry should be
+ typeset like USE_SINGULAR and sorted like REFERENCE_SINGULAR.
+
+ - Trying to sum up the needed axis/features:
+
+ singular plural
+ reference LaTeX(1)
+ use \LaTeX(2)
+ index_as [2]
+ index_sort_as [1]
+
+ - An example with sub-entries ('#-' signals singular form):
+
+ |TeXnician@{{\TeX}nician}
+ | -'s tool
+ | smart -
+
+ The first entry will be interpreted as
+
+ singular plural
+ reference TeXnician(1s) TeXnichians(1p)
+ use {\TeX}nician(2s) {\TeX}nician(2p)
+ index_as [2s]
+ index_sort_as [1s]
+
+ and the second entry will become
+
+ singular plural
+ reference [1s]'s tool(2.1s) [1s]'s tools
+ use [2s]'s tool(2.2s) [2s]'s tools
+ index_as [2s]
+ index_sort_as [1s]
+
+ while the third entry will become
+
+ singular plural
+ reference smart [1s](3.1) smart [1p]
+ use smart [2s](3.2) smart [2p]
+ index_as [2s]
+ index_sort_as [1s]
+
+
+#+STARTUP: hidestars
+#+STARTUP: content
diff --git a/support/intex/aclocal.m4 b/support/intex/aclocal.m4
new file mode 100644
index 0000000000..6cd6982143
--- /dev/null
+++ b/support/intex/aclocal.m4
@@ -0,0 +1,839 @@
+# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
+# Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
+[m4_warning([this file was generated for autoconf 2.68.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
+
+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
+# Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.11'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.11.3], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.11.3])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 16
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.62])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES(CC)],
+ [define([AC_PROG_CC],
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
+])
+
+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
+# Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 6
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
+# Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
+# Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# --------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
+# 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ---------------------------------------------------------------------------
+# Adds support for distributing Python modules and packages. To
+# install modules, copy them to $(pythondir), using the python_PYTHON
+# automake variable. To install a package with the same name as the
+# automake package, install to $(pkgpythondir), or use the
+# pkgpython_PYTHON automake variable.
+#
+# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
+# locations to install python extension modules (shared libraries).
+# Another macro is required to find the appropriate flags to compile
+# extension modules.
+#
+# If your package is configured with a different prefix to python,
+# users will have to add the install directory to the PYTHONPATH
+# environment variable, or create a .pth file (see the python
+# documentation for details).
+#
+# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
+# cause an error if the version of python installed on the system
+# doesn't meet the requirement. MINIMUM-VERSION should consist of
+# numbers and dots only.
+AC_DEFUN([AM_PATH_PYTHON],
+ [
+ dnl Find a Python interpreter. Python versions prior to 2.0 are not
+ dnl supported. (2.0 was released on October 16, 2000).
+ m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
+[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
+ python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
+
+ AC_ARG_VAR([PYTHON], [the Python interpreter])
+
+ m4_if([$1],[],[
+ dnl No version check is needed.
+ # Find any Python interpreter.
+ if test -z "$PYTHON"; then
+ AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
+ fi
+ am_display_PYTHON=python
+ ], [
+ dnl A version check is needed.
+ if test -n "$PYTHON"; then
+ # If the user set $PYTHON, use it and don't search something else.
+ AC_MSG_CHECKING([whether $PYTHON version >= $1])
+ AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_ERROR(too old)])
+ am_display_PYTHON=$PYTHON
+ else
+ # Otherwise, try each interpreter until we find one that satisfies
+ # VERSION.
+ AC_CACHE_CHECK([for a Python interpreter with version >= $1],
+ [am_cv_pathless_PYTHON],[
+ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
+ test "$am_cv_pathless_PYTHON" = none && break
+ AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
+ done])
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+ if test "$am_cv_pathless_PYTHON" = none; then
+ PYTHON=:
+ else
+ AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
+ fi
+ am_display_PYTHON=$am_cv_pathless_PYTHON
+ fi
+ ])
+
+ if test "$PYTHON" = :; then
+ dnl Run any user-specified action, or abort.
+ m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
+ else
+
+ dnl Query Python for its version number. Getting [:3] seems to be
+ dnl the best way to do this; it's what "site.py" does in the standard
+ dnl library.
+
+ AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
+ [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
+ AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
+
+ dnl Use the values of $prefix and $exec_prefix for the corresponding
+ dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
+ dnl distinct variables so they can be overridden if need be. However,
+ dnl general consensus is that you shouldn't need this ability.
+
+ AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
+ AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
+
+ dnl At times (like when building shared libraries) you may want
+ dnl to know which OS platform Python thinks this is.
+
+ AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
+ [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
+ AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
+
+
+ dnl Set up 4 directories:
+
+ dnl pythondir -- where to install python scripts. This is the
+ dnl site-packages directory, not the python standard library
+ dnl directory like in previous automake betas. This behavior
+ dnl is more consistent with lispdir.m4 for example.
+ dnl Query distutils for this directory.
+ AC_CACHE_CHECK([for $am_display_PYTHON script directory],
+ [am_cv_python_pythondir],
+ [if test "x$prefix" = xNONE
+ then
+ am_py_prefix=$ac_default_prefix
+ else
+ am_py_prefix=$prefix
+ fi
+ am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
+ case $am_cv_python_pythondir in
+ $am_py_prefix*)
+ am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
+ am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
+ ;;
+ *)
+ case $am_py_prefix in
+ /usr|/System*) ;;
+ *)
+ am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
+ ;;
+ esac
+ ;;
+ esac
+ ])
+ AC_SUBST([pythondir], [$am_cv_python_pythondir])
+
+ dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
+ dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
+ dnl more consistent with the rest of automake.
+
+ AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
+
+ dnl pyexecdir -- directory for installing python extension modules
+ dnl (shared libraries)
+ dnl Query distutils for this directory.
+ AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
+ [am_cv_python_pyexecdir],
+ [if test "x$exec_prefix" = xNONE
+ then
+ am_py_exec_prefix=$am_py_prefix
+ else
+ am_py_exec_prefix=$exec_prefix
+ fi
+ am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
+ case $am_cv_python_pyexecdir in
+ $am_py_exec_prefix*)
+ am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
+ am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
+ ;;
+ *)
+ case $am_py_exec_prefix in
+ /usr|/System*) ;;
+ *)
+ am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
+ ;;
+ esac
+ ;;
+ esac
+ ])
+ AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
+
+ dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
+
+ AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
+
+ dnl Run any user-specified action.
+ $2
+ fi
+
+])
+
+
+# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
+# ---------------------------------------------------------------------------
+# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
+# Run ACTION-IF-FALSE otherwise.
+# This test uses sys.hexversion instead of the string equivalent (first
+# word of sys.version), in order to cope with versions such as 2.2c1.
+# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
+AC_DEFUN([AM_PYTHON_CHECK_VERSION],
+ [prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
+sys.exit(sys.hexversion < minverhex)"
+ AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
+
+# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# AM_SUBST_NOTMAKE(VARIABLE)
+# --------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AC_SUBST([AMTAR], ['$${TAR-tar}'])
+m4_if([$1], [v7],
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
diff --git a/support/intex/bin/config.sh b/support/intex/bin/config.sh
new file mode 100644
index 0000000000..6b53ca66c4
--- /dev/null
+++ b/support/intex/bin/config.sh
@@ -0,0 +1,12 @@
+#! /bin/bash
+#
+# $Id$
+#
+# These configuration values may be used by the other build scripts in
+# this directory.
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+PACKAGE_NAME=intex
+PACKAGE_VERSION=1.8.0
diff --git a/support/intex/bin/config.sh.in b/support/intex/bin/config.sh.in
new file mode 100644
index 0000000000..6aa8532a98
--- /dev/null
+++ b/support/intex/bin/config.sh.in
@@ -0,0 +1,12 @@
+#! /bin/bash
+#
+# $Id$
+#
+# These configuration values may be used by the other build scripts in
+# this directory.
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+PACKAGE_NAME=@PACKAGE_NAME@
+PACKAGE_VERSION=@PACKAGE_VERSION@
diff --git a/support/intex/bin/get_release b/support/intex/bin/get_release
new file mode 100755
index 0000000000..1e8953f99e
--- /dev/null
+++ b/support/intex/bin/get_release
@@ -0,0 +1,18 @@
+#! /bin/bash
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+if [ -z "$RELEASE_FILE" ]; then
+ RELEASE_FILE=RELEASE
+fi
+
+if [ ! -f $RELEASE_FILE ]; then
+ PATH=$PATH:$(dirname $0)
+ increase_release
+fi
+
+release=$(cat $RELEASE_FILE)
+echo -n $release
diff --git a/support/intex/bin/increase_release b/support/intex/bin/increase_release
new file mode 100755
index 0000000000..f6898defa4
--- /dev/null
+++ b/support/intex/bin/increase_release
@@ -0,0 +1,21 @@
+#! /bin/bash
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+if [ -z "$RELEASE_FILE" ]; then
+ RELEASE_FILE=RELEASE
+fi
+
+if [ -r $RELEASE_FILE ]; then
+ RELEASE=$(cat $RELEASE_FILE)
+ next_release=$(($RELEASE + 1))
+ echo "Increasing release number from $RELEASE to $next_release".
+else
+ next_release=1
+ echo "No previous release number found. Starting with release number $next_release"
+fi
+
+echo "$next_release" > $RELEASE_FILE
diff --git a/support/intex/bin/tag_release b/support/intex/bin/tag_release
new file mode 100755
index 0000000000..cbea68a25e
--- /dev/null
+++ b/support/intex/bin/tag_release
@@ -0,0 +1,30 @@
+#! /bin/bash
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+if [ -z "$RELEASE_FILE" ]; then
+ RELEASE_FILE=RELEASE
+fi
+
+main=$(svnpath)
+tags=$(svnpath tags)
+
+workdir=$(dirname $0)
+
+. $workdir/config.sh
+
+version=$PACKAGE_VERSION
+release=$($workdir/get_release)
+
+tag=release-${version}_${release}
+
+echo "Committing changes..."
+svn commit
+echo "done"
+
+echo "Tagging release '$tag'..."
+svn copy $main $tags/$tag --message "New release."
+echo "done"
diff --git a/support/intex/config.log b/support/intex/config.log
new file mode 100644
index 0000000000..db804db616
--- /dev/null
+++ b/support/intex/config.log
@@ -0,0 +1,215 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by intex configure 1.8.0, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ $ ./configure
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = mtr-thinkpad-w510
+uname -m = x86_64
+uname -r = 3.2.0-38-generic
+uname -s = Linux
+uname -v = #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013
+
+/usr/bin/uname -p = unknown
+/bin/uname -X = unknown
+
+/bin/arch = unknown
+/usr/bin/arch -k = unknown
+/usr/convex/getsysinfo = unknown
+/usr/bin/hostinfo = unknown
+/bin/machine = unknown
+/usr/bin/oslevel = unknown
+/bin/universe = unknown
+
+PATH: /home/mtr/bin
+PATH: /home/mtr/bin
+PATH: /usr/lib/lightdm/lightdm
+PATH: /usr/local/sbin
+PATH: /usr/local/bin
+PATH: /usr/sbin
+PATH: /usr/bin
+PATH: /sbin
+PATH: /bin
+PATH: /usr/games
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:1737: checking for a BSD-compatible install
+configure:1805: result: /usr/bin/install -c
+configure:1816: checking whether build environment is sane
+configure:1866: result: yes
+configure:2007: checking for a thread-safe mkdir -p
+configure:2046: result: /bin/mkdir -p
+configure:2059: checking for gawk
+configure:2075: found /usr/bin/gawk
+configure:2086: result: gawk
+configure:2097: checking whether make sets $(MAKE)
+configure:2119: result: yes
+configure:2234: checking for a Python interpreter with version >= 2.7
+configure:2251: python -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
+configure:2254: $? = 0
+configure:2260: result: python
+configure:2268: checking for python
+configure:2286: found /usr/bin/python
+configure:2298: result: /usr/bin/python
+configure:2316: checking for python version
+configure:2323: result: 2.7
+configure:2335: checking for python platform
+configure:2342: result: linux2
+configure:2349: checking for python script directory
+configure:2377: result: ${prefix}/lib/python2.7/dist-packages
+configure:2386: checking for python extension module directory
+configure:2414: result: ${exec_prefix}/lib/python2.7/dist-packages
+configure:2581: creating ./config.status
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by intex config.status 1.8.0, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status
+
+on mtr-thinkpad-w510
+
+config.status:769: creating Makefile
+config.status:769: creating setup.cfg
+config.status:769: creating setup.py
+config.status:769: creating bin/config.sh
+config.status:769: creating doc/Makefile
+config.status:769: creating doc/mkintex.xml
+config.status:769: creating latex/Makefile
+config.status:769: creating lib/intex/config.py
+config.status:769: creating src/Makefile
+config.status:769: creating src/post-install.sh
+config.status:769: creating src/post-uninstall.sh
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_env_PYTHON_set=
+ac_cv_env_PYTHON_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_path_PYTHON=/usr/bin/python
+ac_cv_path_install='/usr/bin/install -c'
+ac_cv_path_mkdir=/bin/mkdir
+ac_cv_prog_AWK=gawk
+ac_cv_prog_make_make_set=yes
+am_cv_pathless_PYTHON=python
+am_cv_python_platform=linux2
+am_cv_python_pyexecdir='${exec_prefix}/lib/python2.7/dist-packages'
+am_cv_python_pythondir='${prefix}/lib/python2.7/dist-packages'
+am_cv_python_version=2.7
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+ACLOCAL='${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11'
+AMTAR='$${TAR-tar}'
+AUTOCONF='${SHELL} /home/mtr/projects/intex/missing --run autoconf'
+AUTOHEADER='${SHELL} /home/mtr/projects/intex/missing --run autoheader'
+AUTOMAKE='${SHELL} /home/mtr/projects/intex/missing --run automake-1.11'
+AWK='gawk'
+CYGPATH_W='echo'
+DEFS='-DPACKAGE_NAME=\"intex\" -DPACKAGE_TARNAME=\"intex\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"intex\ 1.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"intex\" -DVERSION=\"1.8.0\"'
+ECHO_C=''
+ECHO_N='-n'
+ECHO_T=''
+INSTALL_DATA='${INSTALL} -m 644'
+INSTALL_PROGRAM='${INSTALL}'
+INSTALL_SCRIPT='${INSTALL}'
+INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
+LIBOBJS=''
+LIBS=''
+LTLIBOBJS=''
+MAKEINFO='${SHELL} /home/mtr/projects/intex/missing --run makeinfo'
+MKDIR_P='/bin/mkdir -p'
+PACKAGE='intex'
+PACKAGE_BUGREPORT=''
+PACKAGE_NAME='intex'
+PACKAGE_STRING='intex 1.8.0'
+PACKAGE_TARNAME='intex'
+PACKAGE_URL=''
+PACKAGE_VERSION='1.8.0'
+PATH_SEPARATOR=':'
+PYTHON='/usr/bin/python'
+PYTHON_EXEC_PREFIX='${exec_prefix}'
+PYTHON_PLATFORM='linux2'
+PYTHON_PREFIX='${prefix}'
+PYTHON_VERSION='2.7'
+SET_MAKE=''
+SHELL='/bin/bash'
+STRIP=''
+VERSION='1.8.0'
+am__isrc=''
+am__leading_dot='.'
+am__tar='$${TAR-tar} chof - "$$tardir"'
+am__untar='$${TAR-tar} xf -'
+bindir='${exec_prefix}/bin'
+build_alias=''
+datadir='${datarootdir}'
+datarootdir='${prefix}/share'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+dvidir='${docdir}'
+exec_prefix='${prefix}'
+host_alias=''
+htmldir='${docdir}'
+includedir='${prefix}/include'
+infodir='${datarootdir}/info'
+install_sh='${SHELL} /home/mtr/projects/intex/install-sh'
+libdir='${exec_prefix}/lib'
+libexecdir='${exec_prefix}/libexec'
+localedir='${datarootdir}/locale'
+localstatedir='${prefix}/var'
+mandir='${datarootdir}/man'
+mkdir_p='/bin/mkdir -p'
+oldincludedir='/usr/include'
+pdfdir='${docdir}'
+pkgpyexecdir='${pyexecdir}/intex'
+pkgpythondir='${pythondir}/intex'
+prefix='/usr/local'
+program_transform_name='s,x,x,'
+psdir='${docdir}'
+pyexecdir='${exec_prefix}/lib/python2.7/dist-packages'
+pythondir='${prefix}/lib/python2.7/dist-packages'
+sbindir='${exec_prefix}/sbin'
+sharedstatedir='${prefix}/com'
+sysconfdir='${prefix}/etc'
+target_alias=''
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+/* confdefs.h */
+#define PACKAGE_NAME "intex"
+#define PACKAGE_TARNAME "intex"
+#define PACKAGE_VERSION "1.8.0"
+#define PACKAGE_STRING "intex 1.8.0"
+#define PACKAGE_BUGREPORT ""
+#define PACKAGE_URL ""
+#define PACKAGE "intex"
+#define VERSION "1.8.0"
+
+configure: exit 0
diff --git a/support/intex/config.status b/support/intex/config.status
new file mode 100755
index 0000000000..e1dcef822d
--- /dev/null
+++ b/support/intex/config.status
@@ -0,0 +1,947 @@
+#! /bin/bash
+# Generated by configure.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=${CONFIG_SHELL-/bin/bash}
+export SHELL
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by intex $as_me 1.8.0, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+# Files that config.status was made for.
+config_files=" Makefile setup.cfg setup.py bin/config.sh doc/Makefile doc/mkintex.xml latex/Makefile lib/intex/config.py src/Makefile src/post-install.sh src/post-uninstall.sh"
+
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+
+Configuration files:
+$config_files
+
+Report bugs to the package provider."
+
+ac_cs_config=""
+ac_cs_version="\
+intex config.status 1.8.0
+configured by ./configure, generated by GNU Autoconf 2.68,
+ with options \"$ac_cs_config\"
+
+Copyright (C) 2010 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='/home/mtr/projects/intex'
+srcdir='.'
+INSTALL='/usr/bin/install -c'
+MKDIR_P='/bin/mkdir -p'
+AWK='gawk'
+test -n "$AWK" || AWK=awk
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h | --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+if $ac_cs_recheck; then
+ set X '/bin/bash' './configure' $ac_configure_extra_args --no-create --no-recursion
+ shift
+ $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
+ CONFIG_SHELL='/bin/bash'
+ export CONFIG_SHELL
+ exec "$@"
+fi
+
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "setup.cfg") CONFIG_FILES="$CONFIG_FILES setup.cfg" ;;
+ "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;;
+ "bin/config.sh") CONFIG_FILES="$CONFIG_FILES bin/config.sh" ;;
+ "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
+ "doc/mkintex.xml") CONFIG_FILES="$CONFIG_FILES doc/mkintex.xml" ;;
+ "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;;
+ "lib/intex/config.py") CONFIG_FILES="$CONFIG_FILES lib/intex/config.py" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/post-install.sh") CONFIG_FILES="$CONFIG_FILES src/post-install.sh" ;;
+ "src/post-uninstall.sh") CONFIG_FILES="$CONFIG_FILES src/post-uninstall.sh" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
+S["LTLIBOBJS"]=""
+S["LIBOBJS"]=""
+S["pkgpyexecdir"]="${pyexecdir}/intex"
+S["pyexecdir"]="${exec_prefix}/lib/python2.7/dist-packages"
+S["pkgpythondir"]="${pythondir}/intex"
+S["pythondir"]="${prefix}/lib/python2.7/dist-packages"
+S["PYTHON_PLATFORM"]="linux2"
+S["PYTHON_EXEC_PREFIX"]="${exec_prefix}"
+S["PYTHON_PREFIX"]="${prefix}"
+S["PYTHON_VERSION"]="2.7"
+S["PYTHON"]="/usr/bin/python"
+S["am__untar"]="$${TAR-tar} xf -"
+S["am__tar"]="$${TAR-tar} chof - \"$$tardir\""
+S["AMTAR"]="$${TAR-tar}"
+S["am__leading_dot"]="."
+S["SET_MAKE"]=""
+S["AWK"]="gawk"
+S["mkdir_p"]="/bin/mkdir -p"
+S["MKDIR_P"]="/bin/mkdir -p"
+S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
+S["STRIP"]=""
+S["install_sh"]="${SHELL} /home/mtr/projects/intex/install-sh"
+S["MAKEINFO"]="${SHELL} /home/mtr/projects/intex/missing --run makeinfo"
+S["AUTOHEADER"]="${SHELL} /home/mtr/projects/intex/missing --run autoheader"
+S["AUTOMAKE"]="${SHELL} /home/mtr/projects/intex/missing --run automake-1.11"
+S["AUTOCONF"]="${SHELL} /home/mtr/projects/intex/missing --run autoconf"
+S["ACLOCAL"]="${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11"
+S["VERSION"]="1.8.0"
+S["PACKAGE"]="intex"
+S["CYGPATH_W"]="echo"
+S["am__isrc"]=""
+S["INSTALL_DATA"]="${INSTALL} -m 644"
+S["INSTALL_SCRIPT"]="${INSTALL}"
+S["INSTALL_PROGRAM"]="${INSTALL}"
+S["target_alias"]=""
+S["host_alias"]=""
+S["build_alias"]=""
+S["LIBS"]=""
+S["ECHO_T"]=""
+S["ECHO_N"]="-n"
+S["ECHO_C"]=""
+S["DEFS"]="-DPACKAGE_NAME=\\\"intex\\\" -DPACKAGE_TARNAME=\\\"intex\\\" -DPACKAGE_VERSION=\\\"1.8.0\\\" -DPACKAGE_STRING=\\\"intex\\ 1.8.0\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DPACKAG"\
+"E_URL=\\\"\\\" -DPACKAGE=\\\"intex\\\" -DVERSION=\\\"1.8.0\\\""
+S["mandir"]="${datarootdir}/man"
+S["localedir"]="${datarootdir}/locale"
+S["libdir"]="${exec_prefix}/lib"
+S["psdir"]="${docdir}"
+S["pdfdir"]="${docdir}"
+S["dvidir"]="${docdir}"
+S["htmldir"]="${docdir}"
+S["infodir"]="${datarootdir}/info"
+S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
+S["oldincludedir"]="/usr/include"
+S["includedir"]="${prefix}/include"
+S["localstatedir"]="${prefix}/var"
+S["sharedstatedir"]="${prefix}/com"
+S["sysconfdir"]="${prefix}/etc"
+S["datadir"]="${datarootdir}"
+S["datarootdir"]="${prefix}/share"
+S["libexecdir"]="${exec_prefix}/libexec"
+S["sbindir"]="${exec_prefix}/sbin"
+S["bindir"]="${exec_prefix}/bin"
+S["program_transform_name"]="s,x,x,"
+S["prefix"]="/usr/local"
+S["exec_prefix"]="${prefix}"
+S["PACKAGE_URL"]=""
+S["PACKAGE_BUGREPORT"]=""
+S["PACKAGE_STRING"]="intex 1.8.0"
+S["PACKAGE_VERSION"]="1.8.0"
+S["PACKAGE_TARNAME"]="intex"
+S["PACKAGE_NAME"]="intex"
+S["PATH_SEPARATOR"]=":"
+S["SHELL"]="/bin/bash"
+_ACAWK
+cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+fi # test -n "$CONFIG_FILES"
+
+
+eval set X " :F $CONFIG_FILES "
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+ ac_datarootdir_hack='
+ s&@datadir@&${datarootdir}&g
+ s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
+ s&@infodir@&${datarootdir}/info&g
+ s&@localedir@&${datarootdir}/locale&g
+ s&@mandir@&${datarootdir}/man&g
+ s&\${datarootdir}&${prefix}/share&g' ;;
+esac
+ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}
+
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+
+
+
+ esac
+
+done # for ac_tag
+
+
+as_fn_exit 0
diff --git a/support/intex/configure b/support/intex/configure
new file mode 100755
index 0000000000..ea8f129179
--- /dev/null
+++ b/support/intex/configure
@@ -0,0 +1,3621 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.68 for intex 1.8.0.
+#
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
+# Foundation, Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+ # Preserve -v and -x to the replacement shell.
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+ export CONFIG_SHELL
+ case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+ esac
+ exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
+$0: including any error possibly output before this
+$0: message. Then install a modern shell, or manually run
+$0: the script under such a shell if you do have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='intex'
+PACKAGE_TARNAME='intex'
+PACKAGE_VERSION='1.8.0'
+PACKAGE_STRING='intex 1.8.0'
+PACKAGE_BUGREPORT=''
+PACKAGE_URL=''
+
+ac_unique_file="src/mkintex.py"
+ac_subst_vars='LTLIBOBJS
+LIBOBJS
+pkgpyexecdir
+pyexecdir
+pkgpythondir
+pythondir
+PYTHON_PLATFORM
+PYTHON_EXEC_PREFIX
+PYTHON_PREFIX
+PYTHON_VERSION
+PYTHON
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+PYTHON'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used" >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures intex 1.8.0 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/intex]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of intex 1.8.0:";;
+ esac
+ cat <<\_ACEOF
+
+Some influential environment variables:
+ PYTHON the Python interpreter
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to the package provider.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+intex configure 1.8.0
+generated by GNU Autoconf 2.68
+
+Copyright (C) 2010 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by intex $as_me 1.8.0, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+am__api_version='1.11'
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if ${ac_cv_path_install+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+ ./ | .// | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[\\\"\#\$\&\'\`$am_lf]*)
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+esac
+case $srcdir in
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
+alias in your environment" "$LINENO" 5
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if ${ac_cv_path_mkdir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
+
+fi
+
+ test -d ./--version && rmdir ./--version
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AWK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='intex'
+ VERSION='1.8.0'
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
+
+am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
+
+
+
+
+
+
+
+
+
+
+
+
+
+ if test -n "$PYTHON"; then
+ # If the user set $PYTHON, use it and don't search something else.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
+$as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
+ ($PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "too old" "$LINENO" 5
+fi
+ am_display_PYTHON=$PYTHON
+ else
+ # Otherwise, try each interpreter until we find one that satisfies
+ # VERSION.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
+$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
+if ${am_cv_pathless_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
+ test "$am_cv_pathless_PYTHON" = none && break
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
+ ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then :
+ break
+fi
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
+$as_echo "$am_cv_pathless_PYTHON" >&6; }
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+ if test "$am_cv_pathless_PYTHON" = none; then
+ PYTHON=:
+ else
+ # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
+set dummy $am_cv_pathless_PYTHON; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PYTHON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PYTHON=$ac_cv_path_PYTHON
+if test -n "$PYTHON"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
+$as_echo "$PYTHON" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ am_display_PYTHON=$am_cv_pathless_PYTHON
+ fi
+
+
+ if test "$PYTHON" = :; then
+ :
+ else
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
+$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
+if ${am_cv_python_version+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
+$as_echo "$am_cv_python_version" >&6; }
+ PYTHON_VERSION=$am_cv_python_version
+
+
+
+ PYTHON_PREFIX='${prefix}'
+
+ PYTHON_EXEC_PREFIX='${exec_prefix}'
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
+$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
+if ${am_cv_python_platform+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
+$as_echo "$am_cv_python_platform" >&6; }
+ PYTHON_PLATFORM=$am_cv_python_platform
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
+$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
+if ${am_cv_python_pythondir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$prefix" = xNONE
+ then
+ am_py_prefix=$ac_default_prefix
+ else
+ am_py_prefix=$prefix
+ fi
+ am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
+ case $am_cv_python_pythondir in
+ $am_py_prefix*)
+ am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
+ am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
+ ;;
+ *)
+ case $am_py_prefix in
+ /usr|/System*) ;;
+ *)
+ am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
+ ;;
+ esac
+ ;;
+ esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
+$as_echo "$am_cv_python_pythondir" >&6; }
+ pythondir=$am_cv_python_pythondir
+
+
+
+ pkgpythondir=\${pythondir}/$PACKAGE
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
+$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
+if ${am_cv_python_pyexecdir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$exec_prefix" = xNONE
+ then
+ am_py_exec_prefix=$am_py_prefix
+ else
+ am_py_exec_prefix=$exec_prefix
+ fi
+ am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
+ case $am_cv_python_pyexecdir in
+ $am_py_exec_prefix*)
+ am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
+ am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
+ ;;
+ *)
+ case $am_py_exec_prefix in
+ /usr|/System*) ;;
+ *)
+ am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
+ ;;
+ esac
+ ;;
+ esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
+$as_echo "$am_cv_python_pyexecdir" >&6; }
+ pyexecdir=$am_cv_python_pyexecdir
+
+
+
+ pkgpyexecdir=\${pyexecdir}/$PACKAGE
+
+
+
+ fi
+
+
+
+ac_config_files="$ac_config_files Makefile setup.cfg setup.py bin/config.sh doc/Makefile doc/mkintex.xml latex/Makefile lib/intex/config.py src/Makefile src/post-install.sh src/post-uninstall.sh"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then branch to the quote section. Otherwise,
+# look for a macro that doesn't take arguments.
+ac_script='
+:mline
+/\\$/{
+ N
+ s,\\\n,,
+ b mline
+}
+t clear
+:clear
+s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
+t quote
+s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
+t quote
+b any
+:quote
+s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
+s/\[/\\&/g
+s/\]/\\&/g
+s/\$/$$/g
+H
+:any
+${
+ g
+ s/^\n//
+ s/\n/ /g
+ p
+}
+'
+DEFS=`sed -n "$ac_script" confdefs.h`
+
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by intex $as_me 1.8.0, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+
+Configuration files:
+$config_files
+
+Report bugs to the package provider."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+intex config.status 1.8.0
+configured by $0, generated by GNU Autoconf 2.68,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2010 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h | --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "setup.cfg") CONFIG_FILES="$CONFIG_FILES setup.cfg" ;;
+ "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;;
+ "bin/config.sh") CONFIG_FILES="$CONFIG_FILES bin/config.sh" ;;
+ "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
+ "doc/mkintex.xml") CONFIG_FILES="$CONFIG_FILES doc/mkintex.xml" ;;
+ "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;;
+ "lib/intex/config.py") CONFIG_FILES="$CONFIG_FILES lib/intex/config.py" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/post-install.sh") CONFIG_FILES="$CONFIG_FILES src/post-install.sh" ;;
+ "src/post-uninstall.sh") CONFIG_FILES="$CONFIG_FILES src/post-uninstall.sh" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+
+eval set X " :F $CONFIG_FILES "
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+
+
+
+ esac
+
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
diff --git a/support/intex/configure.ac b/support/intex/configure.ac
new file mode 100644
index 0000000000..c5b5cddbd1
--- /dev/null
+++ b/support/intex/configure.ac
@@ -0,0 +1,24 @@
+dnl Process this file with autoconf to produce a configure script.
+dnl
+dnl $Id$
+dnl
+AC_INIT(intex, 1.8.0)
+AC_CONFIG_SRCDIR(src/mkintex.py)
+AM_INIT_AUTOMAKE
+
+dnl AM_GNU_GETTEXT([external])
+
+AM_PATH_PYTHON(2.7,, :)
+
+AC_OUTPUT([Makefile
+ setup.cfg
+ setup.py
+ bin/config.sh
+ doc/Makefile
+ doc/mkintex.xml
+ latex/Makefile
+ lib/intex/config.py
+ src/Makefile
+ src/post-install.sh
+ src/post-uninstall.sh],
+ [])
diff --git a/support/intex/doc/Makefile b/support/intex/doc/Makefile
new file mode 100644
index 0000000000..d47c1a85ac
--- /dev/null
+++ b/support/intex/doc/Makefile
@@ -0,0 +1,416 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# doc/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id: Makefile.am 1026 2007-07-18 12:49:41Z mtr $
+#
+
+pkgdatadir = $(datadir)/intex
+pkgincludedir = $(includedir)/intex
+pkglibdir = $(libdir)/intex
+pkglibexecdir = $(libexecdir)/intex
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = doc
+DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/mkintex.xml.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = mkintex.xml
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+man1dir = $(mandir)/man1
+am__installdirs = "$(DESTDIR)$(man1dir)"
+NROFF = nroff
+MANS = $(dist_man_MANS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11
+AMTAR = $${TAR-tar}
+AUTOCONF = ${SHELL} /home/mtr/projects/intex/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/mtr/projects/intex/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/mtr/projects/intex/missing --run automake-1.11
+AWK = gawk
+CYGPATH_W = echo
+DEFS = -DPACKAGE_NAME=\"intex\" -DPACKAGE_TARNAME=\"intex\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"intex\ 1.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"intex\" -DVERSION=\"1.8.0\"
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LIBOBJS =
+LIBS =
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/mtr/projects/intex/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+PACKAGE = intex
+PACKAGE_BUGREPORT =
+PACKAGE_NAME = intex
+PACKAGE_STRING = intex 1.8.0
+PACKAGE_TARNAME = intex
+PACKAGE_URL =
+PACKAGE_VERSION = 1.8.0
+PATH_SEPARATOR = :
+PYTHON = /usr/bin/python
+PYTHON_EXEC_PREFIX = ${exec_prefix}
+PYTHON_PLATFORM = linux2
+PYTHON_PREFIX = ${prefix}
+PYTHON_VERSION = 2.7
+SET_MAKE =
+SHELL = /bin/bash
+STRIP =
+VERSION = 1.8.0
+abs_builddir = /home/mtr/projects/intex/doc
+abs_srcdir = /home/mtr/projects/intex/doc
+abs_top_builddir = /home/mtr/projects/intex
+abs_top_srcdir = /home/mtr/projects/intex
+am__leading_dot = .
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build_alias =
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host_alias =
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/mtr/projects/intex/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgpyexecdir = ${pyexecdir}/intex
+pkgpythondir = ${pythondir}/intex
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+pyexecdir = ${exec_prefix}/lib/python2.7/dist-packages
+pythondir = ${prefix}/lib/python2.7/dist-packages
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../
+top_builddir = ..
+top_srcdir = ..
+dist_man_MANS = mkintex.1
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu doc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+mkintex.xml: $(top_builddir)/config.status $(srcdir)/mkintex.xml.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+install-man1: $(dist_man_MANS)
+ @$(NORMAL_INSTALL)
+ test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ { for i in $$list; do echo "$$i"; done; \
+ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | while read p; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; echo "$$p"; \
+ done | \
+ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+ sed 'N;N;s,\n, ,g' | { \
+ list=; while read file base inst; do \
+ if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
+ fi; \
+ done; \
+ for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+ while read files; do \
+ test -z "$$files" || { \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
+ done; }
+
+uninstall-man1:
+ @$(NORMAL_UNINSTALL)
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ files=`{ for i in $$list; do echo "$$i"; done; \
+ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @list='$(MANS)'; if test -n "$$list"; then \
+ list=`for p in $$list; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
+ if test -n "$$list" && \
+ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
+ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
+ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
+ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
+ echo " typically \`make maintainer-clean' will remove them" >&2; \
+ exit 1; \
+ else :; fi; \
+ else :; fi
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(MANS)
+installdirs:
+ for dir in "$(DESTDIR)$(man1dir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-man
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man: install-man1
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-man
+
+uninstall-man: uninstall-man1
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-man1 install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
+ uninstall-am uninstall-man uninstall-man1
+
+
+mkintex.1:
+ docbook2x-man mkintex.xml
+
+mkintex.1.gz: mkintex.1
+ gzip --force mkintex.1
+
+all: mkintex.1.gz
+
+clean:
+ rm -rf mkintex.1 mkintex.1.gz *~
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/doc/Makefile.am b/support/intex/doc/Makefile.am
new file mode 100644
index 0000000000..8f6f9885ca
--- /dev/null
+++ b/support/intex/doc/Makefile.am
@@ -0,0 +1,17 @@
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id: Makefile.am 1026 2007-07-18 12:49:41Z mtr $
+#
+
+dist_man_MANS = mkintex.1
+
+mkintex.1:
+ docbook2x-man mkintex.xml
+
+mkintex.1.gz: mkintex.1
+ gzip --force mkintex.1
+
+all: mkintex.1.gz
+
+clean:
+ rm -rf mkintex.1 mkintex.1.gz *~
diff --git a/support/intex/doc/Makefile.in b/support/intex/doc/Makefile.in
new file mode 100644
index 0000000000..e9d3e94f32
--- /dev/null
+++ b/support/intex/doc/Makefile.in
@@ -0,0 +1,416 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+# $Id: Makefile.am 1026 2007-07-18 12:49:41Z mtr $
+#
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = doc
+DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/mkintex.xml.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = mkintex.xml
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+man1dir = $(mandir)/man1
+am__installdirs = "$(DESTDIR)$(man1dir)"
+NROFF = nroff
+MANS = $(dist_man_MANS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PYTHON = @PYTHON@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+dist_man_MANS = mkintex.1
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu doc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+mkintex.xml: $(top_builddir)/config.status $(srcdir)/mkintex.xml.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+install-man1: $(dist_man_MANS)
+ @$(NORMAL_INSTALL)
+ test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ { for i in $$list; do echo "$$i"; done; \
+ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | while read p; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; echo "$$p"; \
+ done | \
+ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+ sed 'N;N;s,\n, ,g' | { \
+ list=; while read file base inst; do \
+ if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
+ fi; \
+ done; \
+ for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+ while read files; do \
+ test -z "$$files" || { \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
+ done; }
+
+uninstall-man1:
+ @$(NORMAL_UNINSTALL)
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ files=`{ for i in $$list; do echo "$$i"; done; \
+ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @list='$(MANS)'; if test -n "$$list"; then \
+ list=`for p in $$list; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
+ if test -n "$$list" && \
+ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
+ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
+ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
+ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
+ echo " typically \`make maintainer-clean' will remove them" >&2; \
+ exit 1; \
+ else :; fi; \
+ else :; fi
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(MANS)
+installdirs:
+ for dir in "$(DESTDIR)$(man1dir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-man
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man: install-man1
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-man
+
+uninstall-man: uninstall-man1
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-man1 install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
+ uninstall-am uninstall-man uninstall-man1
+
+
+mkintex.1:
+ docbook2x-man mkintex.xml
+
+mkintex.1.gz: mkintex.1
+ gzip --force mkintex.1
+
+all: mkintex.1.gz
+
+clean:
+ rm -rf mkintex.1 mkintex.1.gz *~
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/doc/mkintex.1.gz b/support/intex/doc/mkintex.1.gz
new file mode 100644
index 0000000000..bbd9981e95
--- /dev/null
+++ b/support/intex/doc/mkintex.1.gz
Binary files differ
diff --git a/support/intex/doc/mkintex.xml b/support/intex/doc/mkintex.xml
new file mode 100644
index 0000000000..1774b30813
--- /dev/null
+++ b/support/intex/doc/mkintex.xml
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<refentry id='mkintex1'>
+ <refmeta>
+ <refentrytitle>mkintex</refentrytitle>
+ <manvolnum>1</manvolnum>
+ <refmiscinfo>intex 1.8.0</refmiscinfo>
+ </refmeta>
+ <refnamediv id='name'>
+ <refname>mkintex</refname>
+ <refpurpose>index preprocessor for the
+ <refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum>
+ <refentrytitle>LaTeX</refentrytitle><manvolnum>1</manvolnum>
+ package</refpurpose>
+ </refnamediv>
+ <!-- body begins here -->
+ <refsynopsisdiv id='synopsis'>
+ <cmdsynopsis>
+ <command>mkintex</command>
+ <arg choice='opt'><replaceable>options</replaceable></arg>
+ <arg choice='plain'><replaceable>&lt;InTeX-index&gt;</replaceable></arg>
+ <arg choice='opt' rep='repeat'><replaceable>InTeX-index</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1 id='description'><title>DESCRIPTION</title>
+ <para>The <citerefentry><refentrytitle>InTeX</refentrytitle>
+ <manvolnum>5</manvolnum></citerefentry> package adds functionality
+ to LaTeX that eases typesetting and indexing of phrases, acronyms,
+ and proper names in a consistent manner throughout documents of
+ arbitrary length.</para>
+
+ <para><citerefentry><refentrytitle>mkintex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry> is a preprocessor that
+ interprets index entries specified in .itx files and generates
+ appropriate entries for LaTeX and
+ <citerefentry><refentrytitle>makeindex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>.</para>
+ </refsect1>
+
+ <refsect1 id='options'><title>OPTIONS</title>
+ <variablelist remap='TP'>
+ <varlistentry>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>show program's version number and exit</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h, --help</option></term>
+ <listitem>
+ <para>show this help message and exit</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-D, --debug</option></term>
+ <listitem>
+ <para>whether or not to output debug information</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-V, --verbose</option></term>
+ <listitem>
+ <para>whether or not to output verbose information</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-I, --only-build-index</option></term>
+ <listitem>
+ <para>only build the internal model of the index</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-O &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --ito-file=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output the new internal InTeX information to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-o &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --index-file=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output the new indexing information to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-a &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --acrodef-output=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output acronym definitions to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-p &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --persondef-output=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output (person) name definitions to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1 id='examples'><title>EXAMPLES</title>
+ <para>Let us assume that you have already written a
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ document, named &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.tex, that uses the
+ <citerefentry><refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ package. Furthermore, we assume that you have defined a set of
+ concepts, acronyms, and proper nouns for indexing in a file named
+ &lt;<emphasis remap='I'>document_name</emphasis>&gt;.itx. Then, to
+ run this program the standard way, first process the document with
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ (or
+ <citerefentry><refentrytitle>pdflatex</refentrytitle><manvolnum>1</manvolnum></citerefentry>)
+ by issuing the command</para>
+
+ <para>latex &lt;<emphasis remap='I'>document_name</emphasis>&gt;</para>
+
+ <para>This will process the document once and generate both a DVI
+ file (&lt;<emphasis remap='I'>document_name</emphasis>&gt;.dvi)---or
+ a PDF file (&lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.pdf)---and an auxiliary file
+ (&lt;<emphasis remap='I'>document_name</emphasis>&gt;.aux).
+ </para>
+
+ <para>Next, run the
+ <citerefentry><refentrytitle>mkintex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ program</para>
+
+ <para>mkintex &lt;<emphasis remap='I'>document_name</emphasis>&gt; --index-file=&lt;<emphasis remap='I'>document_name</emphasis>&gt;.rix</para>
+
+ <para>that will use as input both &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.aux and &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.itx to produce two new output
+ files. The first file is &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.ito, which will be used by
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ in following compilations of &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.tex, and &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.rix, which will be used by
+ <citerefentry><refentrytitle>makeindex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ to produce a proper index for LaTeX to typeset:</para>
+
+ <para>makeindex -o intex.rid intex.rix</para>
+
+ <para>After that, we have to run
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ again to generate a version of the document with the defined
+ concepts, acronyms, and proper names properly typeset and
+ indexed:</para>
+
+ <para>latex &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;</para>
+
+ <para>Please note that in the examples above, &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt; is the name of the main LaTeX
+ document, without the .tex ending.</para>
+
+ <para>For more information and examples of how to use the
+ <refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum>
+ <refentrytitle>LaTeX</refentrytitle><manvolnum>1</manvolnum>
+ package, please see the file intex.pdf.
+ </para>
+
+ </refsect1>
+
+ <refsect1 id='authors'><title>AUTHORS</title>
+ <para>
+ <contrib>Original author:</contrib>
+ <author>
+ <firstname>Martin</firstname>
+ <othername>Thorsen</othername>
+ <surname>Ranang</surname>
+ </author>
+ <email>mtr@ranang.org</email>.
+ </para>
+ </refsect1>
+
+ <refsect1 id='copying'><title>COPYING</title>
+ <para>
+ InTeX is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ </para>
+ <para>
+ InTeX is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ </para>
+ <para>
+ You should have received a copy of the GNU General Public License
+ along with InTeX. If not, see &lt;http://www.gnu.org/licenses/&gt;.
+ </para>
+ </refsect1>
+
+ <refsect1 id='see_also'><title>SEE ALSO</title>
+ <para>
+ <citerefentry><refentrytitle>intex</refentrytitle>
+ <manvolnum>5</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>makeindex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>latex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>
+ </para>
+ </refsect1>
+</refentry>
diff --git a/support/intex/doc/mkintex.xml.in b/support/intex/doc/mkintex.xml.in
new file mode 100644
index 0000000000..ba3e23375a
--- /dev/null
+++ b/support/intex/doc/mkintex.xml.in
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<refentry id='mkintex1'>
+ <refmeta>
+ <refentrytitle>mkintex</refentrytitle>
+ <manvolnum>1</manvolnum>
+ <refmiscinfo>@PACKAGE@ @VERSION@</refmiscinfo>
+ </refmeta>
+ <refnamediv id='name'>
+ <refname>mkintex</refname>
+ <refpurpose>index preprocessor for the
+ <refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum>
+ <refentrytitle>LaTeX</refentrytitle><manvolnum>1</manvolnum>
+ package</refpurpose>
+ </refnamediv>
+ <!-- body begins here -->
+ <refsynopsisdiv id='synopsis'>
+ <cmdsynopsis>
+ <command>mkintex</command>
+ <arg choice='opt'><replaceable>options</replaceable></arg>
+ <arg choice='plain'><replaceable>&lt;InTeX-index&gt;</replaceable></arg>
+ <arg choice='opt' rep='repeat'><replaceable>InTeX-index</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1 id='description'><title>DESCRIPTION</title>
+ <para>The <citerefentry><refentrytitle>InTeX</refentrytitle>
+ <manvolnum>5</manvolnum></citerefentry> package adds functionality
+ to LaTeX that eases typesetting and indexing of phrases, acronyms,
+ and proper names in a consistent manner throughout documents of
+ arbitrary length.</para>
+
+ <para><citerefentry><refentrytitle>mkintex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry> is a preprocessor that
+ interprets index entries specified in .itx files and generates
+ appropriate entries for LaTeX and
+ <citerefentry><refentrytitle>makeindex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>.</para>
+ </refsect1>
+
+ <refsect1 id='options'><title>OPTIONS</title>
+ <variablelist remap='TP'>
+ <varlistentry>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>show program's version number and exit</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h, --help</option></term>
+ <listitem>
+ <para>show this help message and exit</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-D, --debug</option></term>
+ <listitem>
+ <para>whether or not to output debug information</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-V, --verbose</option></term>
+ <listitem>
+ <para>whether or not to output verbose information</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-I, --only-build-index</option></term>
+ <listitem>
+ <para>only build the internal model of the index</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-O &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --ito-file=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output the new internal InTeX information to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-o &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --index-file=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output the new indexing information to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-a &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --acrodef-output=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output acronym definitions to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-p &lt;</option><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;, --persondef-output=&lt;</emphasis><emphasis remap='I'>file</emphasis><emphasis remap='P->B'>&gt;</emphasis></term>
+ <listitem>
+ <para>output (person) name definitions to &lt;<emphasis remap='I'>file</emphasis>&gt; (default: none)</para>
+
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1 id='examples'><title>EXAMPLES</title>
+ <para>Let us assume that you have already written a
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ document, named &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.tex, that uses the
+ <citerefentry><refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ package. Furthermore, we assume that you have defined a set of
+ concepts, acronyms, and proper nouns for indexing in a file named
+ &lt;<emphasis remap='I'>document_name</emphasis>&gt;.itx. Then, to
+ run this program the standard way, first process the document with
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ (or
+ <citerefentry><refentrytitle>pdflatex</refentrytitle><manvolnum>1</manvolnum></citerefentry>)
+ by issuing the command</para>
+
+ <para>latex &lt;<emphasis remap='I'>document_name</emphasis>&gt;</para>
+
+ <para>This will process the document once and generate both a DVI
+ file (&lt;<emphasis remap='I'>document_name</emphasis>&gt;.dvi)---or
+ a PDF file (&lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.pdf)---and an auxiliary file
+ (&lt;<emphasis remap='I'>document_name</emphasis>&gt;.aux).
+ </para>
+
+ <para>Next, run the
+ <citerefentry><refentrytitle>mkintex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ program</para>
+
+ <para>mkintex &lt;<emphasis remap='I'>document_name</emphasis>&gt; --index-file=&lt;<emphasis remap='I'>document_name</emphasis>&gt;.rix</para>
+
+ <para>that will use as input both &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.aux and &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.itx to produce two new output
+ files. The first file is &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.ito, which will be used by
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ in following compilations of &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.tex, and &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;.rix, which will be used by
+ <citerefentry><refentrytitle>makeindex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ to produce a proper index for LaTeX to typeset:</para>
+
+ <para>makeindex -o intex.rid intex.rix</para>
+
+ <para>After that, we have to run
+ <citerefentry><refentrytitle>latex</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ again to generate a version of the document with the defined
+ concepts, acronyms, and proper names properly typeset and
+ indexed:</para>
+
+ <para>latex &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt;</para>
+
+ <para>Please note that in the examples above, &lt;<emphasis
+ remap='I'>document_name</emphasis>&gt; is the name of the main LaTeX
+ document, without the .tex ending.</para>
+
+ <para>For more information and examples of how to use the
+ <refentrytitle>InTeX</refentrytitle><manvolnum>5</manvolnum>
+ <refentrytitle>LaTeX</refentrytitle><manvolnum>1</manvolnum>
+ package, please see the file intex.pdf.
+ </para>
+
+ </refsect1>
+
+ <refsect1 id='authors'><title>AUTHORS</title>
+ <para>
+ <contrib>Original author:</contrib>
+ <author>
+ <firstname>Martin</firstname>
+ <othername>Thorsen</othername>
+ <surname>Ranang</surname>
+ </author>
+ <email>mtr@ranang.org</email>.
+ </para>
+ </refsect1>
+
+ <refsect1 id='copying'><title>COPYING</title>
+ <para>
+ InTeX is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ </para>
+ <para>
+ InTeX is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ </para>
+ <para>
+ You should have received a copy of the GNU General Public License
+ along with InTeX. If not, see &lt;http://www.gnu.org/licenses/&gt;.
+ </para>
+ </refsect1>
+
+ <refsect1 id='see_also'><title>SEE ALSO</title>
+ <para>
+ <citerefentry><refentrytitle>intex</refentrytitle>
+ <manvolnum>5</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>makeindex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>latex</refentrytitle>
+ <manvolnum>1</manvolnum></citerefentry>
+ </para>
+ </refsect1>
+</refentry>
diff --git a/support/intex/install_latest_release.sh b/support/intex/install_latest_release.sh
new file mode 100755
index 0000000000..305b6a582e
--- /dev/null
+++ b/support/intex/install_latest_release.sh
@@ -0,0 +1,6 @@
+#! /bin/bash
+#
+# Copyright (C) 2009 by Martin Thorsen Ranang
+#
+
+sudo dpkg --purge intex && sudo dpkg --install $(ls -1 --sort=time --reverse dist/*.deb |tail -1)
diff --git a/support/intex/latex/FILES b/support/intex/latex/FILES
new file mode 100644
index 0000000000..f3341e8a36
--- /dev/null
+++ b/support/intex/latex/FILES
@@ -0,0 +1,17 @@
+$Id$
+
+The only files in this directory that are under revision control are
+
+ intex.dtx
+ intex.itx
+
+and, of course this file that you are reading now
+
+ FILES
+
+
+That should be all. All other files are automatically generated by
+running
+
+ latex intex.dtx
+
diff --git a/support/intex/latex/Makefile b/support/intex/latex/Makefile
new file mode 100644
index 0000000000..cf7b4744ae
--- /dev/null
+++ b/support/intex/latex/Makefile
@@ -0,0 +1,325 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# latex/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+pkgdatadir = $(datadir)/intex
+pkgincludedir = $(includedir)/intex
+pkglibdir = $(libdir)/intex
+pkglibexecdir = $(libexecdir)/intex
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = latex
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11
+AMTAR = $${TAR-tar}
+AUTOCONF = ${SHELL} /home/mtr/projects/intex/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/mtr/projects/intex/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/mtr/projects/intex/missing --run automake-1.11
+AWK = gawk
+CYGPATH_W = echo
+DEFS = -DPACKAGE_NAME=\"intex\" -DPACKAGE_TARNAME=\"intex\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"intex\ 1.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"intex\" -DVERSION=\"1.8.0\"
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LIBOBJS =
+LIBS =
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/mtr/projects/intex/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+PACKAGE = intex
+PACKAGE_BUGREPORT =
+PACKAGE_NAME = intex
+PACKAGE_STRING = intex 1.8.0
+PACKAGE_TARNAME = intex
+PACKAGE_URL =
+PACKAGE_VERSION = 1.8.0
+PATH_SEPARATOR = :
+PYTHON = /usr/bin/python
+PYTHON_EXEC_PREFIX = ${exec_prefix}
+PYTHON_PLATFORM = linux2
+PYTHON_PREFIX = ${prefix}
+PYTHON_VERSION = 2.7
+SET_MAKE =
+SHELL = /bin/bash
+STRIP =
+VERSION = 1.8.0
+abs_builddir = /home/mtr/projects/intex/latex
+abs_srcdir = /home/mtr/projects/intex/latex
+abs_top_builddir = /home/mtr/projects/intex
+abs_top_srcdir = /home/mtr/projects/intex
+am__leading_dot = .
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build_alias =
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host_alias =
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/mtr/projects/intex/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgpyexecdir = ${pyexecdir}/intex
+pkgpythondir = ${pythondir}/intex
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+pyexecdir = ${exec_prefix}/lib/python2.7/dist-packages
+pythondir = ${prefix}/lib/python2.7/dist-packages
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../
+top_builddir = ..
+top_srcdir = ..
+doc_root = intex
+dtx_src = $(doc_root).dtx
+internal = $(doc_root).rix
+index = $(doc_root).rid
+mkintex = ../src/mkintex.py
+flags = --debug --index-file=$(internal)
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu latex/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu latex/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
+
+
+pdf:
+ pdflatex $(dtx_src)
+ PYTHONPATH=../lib python $(mkintex) $(flags) $(doc_root)
+ makeindex $(doc_root)
+ makeindex -o $(index) $(internal)
+ pdflatex $(dtx_src)
+
+all: pdf
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/latex/Makefile.am b/support/intex/latex/Makefile.am
new file mode 100644
index 0000000000..3e3512638e
--- /dev/null
+++ b/support/intex/latex/Makefile.am
@@ -0,0 +1,16 @@
+doc_root = intex
+dtx_src = $(doc_root).dtx
+internal = $(doc_root).rix
+index = $(doc_root).rid
+
+mkintex = ../src/mkintex.py
+flags = --debug --index-file=$(internal)
+
+pdf:
+ pdflatex $(dtx_src)
+ PYTHONPATH=../lib python $(mkintex) $(flags) $(doc_root)
+ makeindex $(doc_root)
+ makeindex -o $(index) $(internal)
+ pdflatex $(dtx_src)
+
+all: pdf
diff --git a/support/intex/latex/Makefile.in b/support/intex/latex/Makefile.in
new file mode 100644
index 0000000000..7a256b907a
--- /dev/null
+++ b/support/intex/latex/Makefile.in
@@ -0,0 +1,325 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = latex
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PYTHON = @PYTHON@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+doc_root = intex
+dtx_src = $(doc_root).dtx
+internal = $(doc_root).rix
+index = $(doc_root).rid
+mkintex = ../src/mkintex.py
+flags = --debug --index-file=$(internal)
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu latex/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu latex/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
+
+
+pdf:
+ pdflatex $(dtx_src)
+ PYTHONPATH=../lib python $(mkintex) $(flags) $(doc_root)
+ makeindex $(doc_root)
+ makeindex -o $(index) $(internal)
+ pdflatex $(dtx_src)
+
+all: pdf
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/latex/intex.aux b/support/intex/latex/intex.aux
new file mode 100644
index 0000000000..e3a1751ac6
--- /dev/null
+++ b/support/intex/latex/intex.aux
@@ -0,0 +1,108 @@
+\relax
+\catcode`"\active
+\ifx\hyper@anchor\@undefined
+\global \let \oldcontentsline\contentsline
+\gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
+\global \let \oldnewlabel\newlabel
+\gdef \newlabel#1#2{\newlabelxx{#1}#2}
+\gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
+\AtEndDocument{\let \contentsline\oldcontentsline
+\let \newlabel\oldnewlabel}
+\else
+\global \let \hyper@last\relax
+\fi
+
+\reset@newl@bel
+\select@language{english}
+\@writefile{toc}{\select@language{english}}
+\@writefile{lof}{\select@language{english}}
+\@writefile{lot}{\select@language{english}}
+\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{1}{section.1}}
+\@writefile{default}{\indexentry{intex\actualchar \string \verb \quotechar *\verbatimchar \bslash intex\verbatimchar \encapchar usage|hyperpage}{1}}
+\@writefile{default}{\indexentry{co\actualchar \string \verb \quotechar *\verbatimchar \bslash co\verbatimchar \encapchar usage|hyperpage}{1}}
+\@writefile{toc}{\contentsline {section}{\numberline {2}Background}{1}{section.2}}
+\@writefile{default}{\indexentry{acronym\actualchar \string \verb \quotechar *\verbatimchar \bslash acronym\verbatimchar \encapchar usage|hyperpage}{1}}
+\@writefile{default}{\indexentry{index\actualchar \string \verb \quotechar *\verbatimchar \bslash index\verbatimchar \encapchar usage|hyperpage}{1}}
+\@writefile{raw}{\indexentry{Python|hyperpage}{2}}
+\newlabel{itxpl-1}{{2}{2}{Background\relax }{section.2}{}}
+\@writefile{toc}{\contentsline {section}{\numberline {3}Usage}{2}{section.3}}
+\@writefile{raw}{\indexentry{concept|hyperpage}{2}}
+\@writefile{raw}{\indexentry{concept|hyperpage}{2}}
+\newlabel{itxpl-2}{{3}{2}{Usage\relax }{section.3}{}}
+\@writefile{raw}{\indexentry{acronym|hyperpage}{2}}
+\@writefile{raw}{\indexentry{person concept|hyperpage}{2}}
+\newlabel{itxpl-3}{{3}{2}{Usage\relax }{section.3}{}}
+\newlabel{itxpl-4}{{3}{2}{Usage\relax }{section.3}{}}
+\@writefile{raw}{\indexentry{concepts|hyperpage}{2}}
+\@writefile{raw}{\indexentry{acronym concepts|hyperpage}{2}}
+\@writefile{raw}{\indexentry{person concepts|hyperpage}{2}}
+\@writefile{raw}{\indexentry{plain concepts|hyperpage}{2}}
+\newlabel{itxpl-5}{{3}{2}{Usage\relax }{section.3}{}}
+\newlabel{itxpl-6}{{3}{2}{Usage\relax }{section.3}{}}
+\newlabel{itxpl-7}{{3}{2}{Usage\relax }{section.3}{}}
+\newlabel{itxpl-8}{{3}{2}{Usage\relax }{section.3}{}}
+\@writefile{raw}{\indexentry{concept|hyperpage}{2}}
+\@writefile{raw}{\indexentry{plain|hyperpage}{2}}
+\newlabel{itxpl-9}{{3}{2}{Usage\relax }{section.3}{}}
+\@writefile{raw}{\indexentry{plain|hyperpage}{2}}
+\@writefile{raw}{\indexentry{sub-concepts|hyperpage}{2}}
+\newlabel{itxpl-10}{{3}{2}{Usage\relax }{section.3}{}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Package Options}{2}{subsection.3.1}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Examples}{2}{subsection.3.2}}
+\@writefile{raw}{\indexentry{H2O|hyperpage}{2}}
+\@writefile{raw}{\indexentry{H2O reserve|hyperpage}{2}}
+\@writefile{raw}{\indexentry{Python|hyperpage}{2}}
+\@writefile{raw}{\indexentry{IDs|hyperpage}{3}}
+\@writefile{raw}{\indexentry{ID|hyperpage}{3}}
+\@writefile{raw}{\indexentry{ID|hyperpage}{3}}
+\@writefile{raw}{\indexentry{ID|hyperpage}{3}}
+\@writefile{raw}{\indexentry{ID|hyperpage}{3}}
+\@writefile{raw}{\indexentry{Swedish SIMPLE|hyperpage}{3}}
+\@writefile{raw}{\indexentry{SIMPLE|hyperpage}{3}}
+\@writefile{raw}{\indexentry{compound-word analyzer|hyperpage}{3}}
+\newlabel{itxpl-11}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\@writefile{raw}{\indexentry{compound-word analyzer|hyperpage}{3}}
+\@writefile{raw}{\indexentry{Norwegian compound-word analysis|hyperpage}{3}}
+\@writefile{raw}{\indexentry{non-deverbal verb compounds|hyperpage}{3}}
+\newlabel{itxpl-12}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\newlabel{itxpl-13}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\@writefile{raw}{\indexentry{Bokmålsordboka|hyperpage}{3}}
+\@writefile{raw}{\indexentry{compounds|hyperpage}{3}}
+\newlabel{itxpl-14}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\newlabel{itxpl-15}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\@writefile{raw}{\indexentry{carnivore|hyperpage}{3}}
+\@writefile{raw}{\indexentry{meat eater|hyperpage}{3}}
+\@writefile{raw}{\indexentry{feline|hyperpage}{3}}
+\@writefile{raw}{\indexentry{canine|hyperpage}{3}}
+\@writefile{raw}{\indexentry{meat eaters|hyperpage}{3}}
+\@writefile{raw}{\indexentry{water|hyperpage}{3}}
+\newlabel{itxpl-16}{{3.2}{3}{Examples\relax }{subsection.3.2}{}}
+\@writefile{raw}{\indexentry{Carnivore|hyperpage}{3}}
+\@writefile{raw}{\indexentry{index|hyperpage}{4}}
+\@writefile{raw}{\indexentry{indices|hyperpage}{4}}
+\@writefile{raw}{\indexentry{vertex|hyperpage}{4}}
+\@writefile{raw}{\indexentry{vertices|hyperpage}{4}}
+\@writefile{raw}{\indexentry{dog|hyperpage}{4}}
+\@writefile{raw}{\indexentry{dogs|hyperpage}{4}}
+\@writefile{raw}{\indexentry{EAPK|hyperpage}{4}}
+\newlabel{itxpl-17}{{3.2}{4}{Examples\relax }{subsection.3.2}{}}
+\@writefile{raw}{\indexentry{EAP|hyperpage}{4}}
+\newlabel{itxpl-18}{{3.2}{4}{Examples\relax }{subsection.3.2}{}}
+\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.1}Index Definitions}{4}{subsubsection.3.2.1}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Compilation}{6}{subsection.3.3}}
+\newlabel{sec:compilation}{{3.3}{6}{Compilation\relax }{subsection.3.3}{}}
+\@writefile{default}{\indexentry{mkintex\actualchar \string \verb \quotechar *\verbatimchar \bslash mkintex\verbatimchar \encapchar usage|hyperpage}{6}}
+\@writefile{raw}{\indexentry{concept|hyperpage}{6}}
+\newlabel{itxpl-19}{{3.3}{6}{Compilation\relax }{subsection.3.3}{}}
+\@writefile{toc}{\contentsline {section}{\numberline {4}Macros}{6}{section.4}}
+\@writefile{default}{\indexentry{InTeX\actualchar \string \verb \quotechar *\verbatimchar \bslash InTeX\verbatimchar \encapchar usage|hyperpage}{6}}
+\@writefile{raw}{\indexentry{InTeX logo|hyperpage}{6}}
+\newlabel{itxpl-20}{{4}{6}{Macros\relax }{section.4}{}}
+\@writefile{toc}{\contentsline {section}{\numberline {5}Implementation}{6}{section.5}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Package Options}{7}{subsection.5.1}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}External Packages}{7}{subsection.5.2}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}The \textsl {In}\kern -.07emT\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\spacefactor \@m \ Logo}{8}{subsection.5.3}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.4}Font Definitions}{8}{subsection.5.4}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.5}The (Low-Level) Clockwork of the Package}{9}{subsection.5.5}}
+\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.5.1}Typesetting of Margin Labels}{9}{subsubsection.5.5.1}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.6}The Internal \textsl {In}\kern -.07emT\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\spacefactor \@m \ File}{21}{subsection.5.6}}
diff --git a/support/intex/latex/intex.dtx b/support/intex/latex/intex.dtx
new file mode 100644
index 0000000000..564c81d820
--- /dev/null
+++ b/support/intex/latex/intex.dtx
@@ -0,0 +1,1519 @@
+% \iffalse meta-comment
+% $Id$
+% Copyright (C) 2005--2008 by Martin Thorsen Ranang <mtr@ranang.org>
+% -------------------------------------------------------
+%
+% This file may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.2
+% of this license or (at your option) any later version.
+% The latest version of this license is in:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% and version 1.2 or later is part of all distributions of LaTeX
+% version 1999/12/01 or later.
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{intex.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+%<package>\ProvidesPackage{intex}
+%<*package>
+ [2008/10/13 v1.1 A concept indexing and typesetting package]
+%</package>
+%<*batchfile>
+\begingroup
+%%
+%% Copyright (C) 2005--2008 by Martin Thorsen Ranang <mtr@ranang.org>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.2 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX version
+%% 1999/12/01 or later.
+%%
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/intex}
+
+\preamble
+
+This is a generated file.
+
+Copyright (C) 2005--2008 by Martin Thorsen Ranang <mtr@ranang.org>
+
+This file may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, either version 1.2 of this license
+or (at your option) any later version. The latest version of this
+license is in:
+
+ http://www.latex-project.org/lppl.txt
+
+and version 1.2 or later is part of all distributions of LaTeX version
+1999/12/01 or later.
+
+\endpreamble
+
+\askforoverwritefalse
+\generate{\file{intex.sty}{\from{intex.dtx}{intex}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX: *}
+\Msg{* *}
+\Msg{* intex.sty *}
+\Msg{* *}
+\Msg{* To produce the documentation run the file intex.dtx *}
+\Msg{* through LaTeX. *}
+\Msg{* *}
+\Msg{* Happy TeXing! *}
+\Msg{* *}
+\Msg{*************************************************************}
+
+\endgroup
+%</batchfile>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{intex}[2008/10/13]
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+\usepackage[norsk,english]{babel}
+\usepackage{fancyvrb}
+\usepackage{url}
+\usepackage[colorlinks=true]{hyperref}
+\usepackage{svn}
+\usepackage{booktabs}
+\SVN $Rev$
+\SVN $Date$
+\EnableCrossrefs
+%\CodelineIndex
+\RecordChanges
+\begin{document}
+ \DocInput{intex.dtx}
+ %\PrintChanges
+ %\PrintIndex
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{0} ^^A Should be 0 during development.
+%
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+%
+% \changes{v1.0}{2005/08/05}{Initial version}
+%
+% \GetFileInfo{intex.dtx}
+%
+% \DoNotIndex{\newcommand,\newenvironment}
+%
+% ^^A From ltugboat.cls
+%
+% ^^A Typeset the name of an environment
+% \providecommand\env[1]{\textsf{#1}}
+% \providecommand\clsname[1]{\textsf{#1}}
+% \providecommand\pkgname[1]{\textsf{#1}}
+% \providecommand\optname[1]{\textsf{#1}}
+% \providecommand\progname[1]{\textsf{#1}}
+%
+% ^^A A list of options for a package/class
+% \newenvironment{optlist}{\begin{description}%
+% \renewcommand\makelabel[1]{%
+% \descriptionlabel{\mdseries\optname{##1}}}%
+% \itemsep0.25\itemsep}%
+% {\end{description}}
+%
+% ^^A Utility macros
+%
+% ^^A Special dashes
+% \def\thinskip{\hskip 0.16667em\relax}
+% \def\endash{--}
+% \def\emdash{\endash-}
+% \def\d@sh#1#2{\unskip#1\thinskip#2\thinskip\ignorespaces}
+% \def\dash{\d@sh\nobreak\endash}
+% \def\Dash{\d@sh\nobreak\emdash}
+%
+% ^^A Example macros - adapted from the `fvrb-ex' package
+% ^^A ---------------------------------------------------
+%
+% ^^A Take care that we use here the "Z" character as comment character,
+% ^^A to avoid to use an 8 bit one which can cause portability problems.
+% ^^A But we can't use any more the "Z" into the example environments
+% ^^A of this documentation.
+%
+% \makeatletter
+% \newcommand{\BeginExample}[1][0]{%
+% \parindent=0pt
+% \multiply\topsep by 2
+% \VerbatimEnvironment
+% \begin{VerbatimOut}[gobble=#1]{\jobname.tmp}}
+%
+% \newcommand{\BelowExample}[1]{%
+% \VerbatimInput[gobble=4,commentchar=Z,numbersep=3pt,frame=single,
+% numbers=left]{\jobname.tmp}
+% \catcode`\Z=9\relax%
+% #1\par}
+%
+% \newcommand{\SideBySide@Example}[1]{%
+% \@tempdimb=\FV@XRightMargin
+% \advance\@tempdimb -5mm
+% \vspace{2mm}
+% \begin{minipage}[c]{\@tempdimb}
+% \fvset{xrightmargin=0pt}%
+% \catcode`\Z=9\relax%
+% #1
+% \end{minipage}%
+% \@tempdimb=\textwidth
+% \advance\@tempdimb -\FV@XRightMargin
+% \advance\@tempdimb 5mm
+% \begin{minipage}[c]{\@tempdimb}
+% \VerbatimInput[commentchar=Z,numbersep=3pt,frame=single,
+% numbers=left,xleftmargin=5mm,xrightmargin=0pt]{\jobname.tmp}
+% \end{minipage}
+% \vspace{2mm}}
+%
+% \def\Example{%
+% \catcode`\^^M=\active
+% \@ifnextchar[{\catcode`\^^M=5\Example@}{\catcode`\^^M=5\Example@@}}
+% \def\Example@[#1]{\fvset{#1}\Example@@}
+% \def\Example@@{\BeginExample}
+% \def\endExample{%
+% \end{VerbatimOut}%
+% \BelowExample{\input{\jobname.tmp}}}
+%
+% \def\CenterExample{%
+% \catcode`\^^M=\active
+% \@ifnextchar[{\catcode`\^^M=5\CenterExample@}
+% {\catcode`\^^M=5\CenterExample@@}}
+% \def\CenterExample@[#1]{\fvset{#1}\CenterExample@@}
+% \def\CenterExample@@{\BeginExample}
+% \def\endCenterExample{%
+% \end{VerbatimOut}%
+% \center
+% \BelowExample{\input{\jobname.tmp}}
+% \endcenter}
+%
+% \def\SideBySideExample{%
+% \catcode`\^^M=\active
+% \@ifnextchar[{\catcode`\^^M=5\SideBySideExample@}%
+% {\catcode`\^^M=5\SideBySideExample@@}}
+% \def\SideBySideExample@[#1]{\fvset{#1}\SideBySideExample@@}
+% \def\SideBySideExample@@{\BeginExample[4]}
+% \def\endSideBySideExample{%
+% \end{VerbatimOut}%
+% \SideBySide@Example{\input{\jobname.tmp}}}
+% \makeatother
+%
+% ^^A End of example macros from `fvrb-ex'
+%
+% \makeatletter
+% \date{\the\year/\two@digits{\the\month}/\two@digits{\the\day}}
+% \makeatother
+%
+% ^^A The beginning of the documentation itself.
+%
+% \title{The \textsf{\InTeX} Package\thanks{This document corresponds
+% to \textsf{intex}, revision~\SVNRev, dated \today.}}
+% \author{Martin Thorsen Ranang \\ \texttt{mtr@ranang.org}}
+%
+% \maketitle
+%
+% \section{Introduction}
+% This package adds functionality to \LaTeX\ that eases typesetting
+% and indexing of phrases, acronyms and names in a consistent manner.
+%
+% \DescribeMacro{intex} \DescribeMacro{\co}
+% The really short usage description is that in order to use the
+% package, insert |\usepackage{intex}| at the beginning of your
+% \LaTeX\ source file. After that, you can wrap the macro
+% |\co{|\meta{concept}|}| around any concept you want to typeset
+% and/or typeset in some special way.
+%
+% \section{Background}
+% I have been using \LaTeX\ since the spring of 1997. Since then I
+% have written several technical documents. Like many others, I try
+% to present my work in an accessible way to the reader, and I believe
+% that \LaTeX\ can help with the technicalities of presenting
+% technical writing in a clear and precise way. For example, I have
+% always tried to explain every non-trivial acronym used in my
+% documents; include a meaningful index; and to also leave some clues
+% to the reader through the typesetting, so that it will be easier to
+% find the key phrases in the document.
+%
+% Already, packages exist that provide functionality that eases the
+% \DescribeMacro{acronym}acronym\footnote{The |acronym| package,
+% written by Tobias Oetiker, available from
+% \url{CTAN:/macros/latex/contrib/acronym}.} and
+% \DescribeMacro{index}indexing\footnote{The |index| package, written
+% by David M.\,Jones, available from
+% \url{CTAN:/macros/latex/contrib/index}.} operations mentioned
+% above. However, problems quickly arise when writing about an
+% acronym in both singular and plural. For example, let's say you
+% want to use the concept \emph{informed search} (abbreviated IS).
+% Then, if you want to write about that concept in plural, the logical
+% acronym would be ISes (informed searches). At the same time, you
+% probably want those two occurences---perhaps typeset several
+% chapters apart---to be indexed as being the same concept.
+%
+% The \InTeX\ package was written to reduce the work needed to handle
+% such a task. This has been done by combining the functionality of
+% the |acronym| and the |index| packages with an external
+% \co{Python}\footnote{\co{Python} is available from
+% \url{http://www.python.org/}.} script.
+%
+% \section{Usage}
+% How you can use \InTeX\ should be clearer after examining some
+% examples. The central idea in \InTeX\ is that a phrase or a word
+% worth indexing constitutes some kind of a \co{concept}---in a broad
+% sense of the word. A \co{concept} can be of several kinds. It can
+% be either an \co{acronym} (or abbreviation), the name of an entity
+% (a \co{person concept}, or an organization), or of the ``plain''
+% kind (simply a phrase). Hence, we will refer to the three kinds of
+% \co{concepts} as \emph{\co{acronym concepts}}, \emph{\co{person
+% concepts}}, and \emph{\co{plain concepts}}.
+%
+% In the above paragraph, the word ``concepts'' was defined as a
+% \co{concept} of the \co{plain} kind, and it was defined to be
+% indexed as the word ``concept''. Furthermore, the words
+% ``acronym'', ``person'', and ``plain'' where also defined as
+% \co{plain}. However, these concepts are defined as
+% \co{sub-concepts} of ``concept'' and should be indexed accordingly.
+%
+% \subsection{Package Options}
+% \begin{optlist}
+% \item[noindex]: Whether \InTeX\ should generate an index or not.
+% (\emph{Default: true}).
+% \item[nowarnundef]: Whether \InTeX\ should generate in-document
+% warnings where unknown/undeclared concepts are encountered.
+% (\emph{Default: true}).
+% \item[nomargin\meta{type}]: Tell \InTeX\ not to add margin notes
+% whenever \emph{new} concepts of kind \meta{type} are typeset, where
+% \meta{type} is one of \optname{plain}, \optname{acronym}, or
+% \optname{person}.
+% \end{optlist}
+%
+% \subsection{Examples}
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% \makeatletter
+% \@itx@margin@acronymfalse%
+% \makeatother
+% It is easy to refer to (and thus index)
+% acronyms, like \co{H2O}. And
+% sub-concepts, like \co{H2O reserve}
+% \end{SideBySideExample}
+%
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% \makeatletter
+% \@itx@margin@acronymfalse%
+% \makeatother
+% We could talk about multiple \co{IDs},
+% or a single \co{ID}. The following
+% table shows explicitly defined
+% formatting:\\
+%
+% \begin{tabular}{@{}ll@{}}
+% \toprule
+% Format & Expansion \\
+% \midrule
+% forced long & ``\coL{ID}''\\
+% short & ``\coS{ID}''\\
+% full & ``\coF{ID}'' \\
+% \bottomrule
+% \end{tabular}
+% \end{SideBySideExample}
+%
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% \makeatletter
+% \@itx@margin@acronymfalse%
+% \makeatother
+% The \InTeX\ package also supports
+% indexing sub-terms of acronyms,
+% like the \co{Swedish SIMPLE}, which
+% is part of the \co{SIMPLE} project.
+% \end{SideBySideExample}
+%
+% The package supports typesetting words differently in the text and
+% in the index. For example, take a look at the definition of the
+% term ``\co{compound-word analyzer}'' in the \InTeX-file. Example
+% that provokes hyphenation: a new, experimental \co{compound-word
+% analyzer}, used for \co{Norwegian compound-word analysis} of
+% \co{non-deverbal verb compounds}, perhaps found in
+% \co{Bokmålsordboka}. Generally, analyzing \co{compounds}.
+%
+% \makeatletter
+% \@itx@margin@plainfalse%
+% \makeatother
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% The word \co{carnivore} means
+% \co{meat eater}. There are both
+% \co{feline} and \co{canine}
+% \co{meat eaters} in the animal
+% kingdom.
+% \end{SideBySideExample}
+% \makeatletter
+% \@itx@margin@plaintrue%
+% \makeatother
+%
+% It is also possible to refer to acronyms from non-acronym entries,
+% like \co{water}.
+%
+% It is also possible to refer to a concept using capitalized words,
+% as in
+%
+% \makeatletter
+% \@itx@margin@plainfalse%
+% \makeatother
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% \co{Carnivore} eat meat.
+% \end{SideBySideExample}
+% \makeatletter
+% \@itx@margin@plaintrue%
+% \makeatother
+%
+% The package also supports ``special'' typesetting of acronyms, like
+%
+% \makeatletter
+% \@itx@margin@plainfalse%
+% \makeatother
+% \begin{SideBySideExample}[xrightmargin=5cm]
+% \verb|mkintex| automatically inflects
+% words following common patterns. For
+% example, \co{index} and \co{indices}
+% both refer to the same concept, even
+% though only \verb|index| is entered
+% in the \InTeX-file. The same goes for
+% \co{vertex} and \co{vertices}, and
+% \co{dog} and \co{dogs}.
+% \end{SideBySideExample}
+% \makeatletter
+% \@itx@margin@plaintrue%
+% \makeatother
+%
+% The \InTeX\ package handles the notion of multiple names for the
+% same concept too. For example, a lot of people believes that
+% \co{EAPK} is referring to one person only, and that is the late
+% \co{EAP}.
+%
+% \subsubsection{Index Definitions}
+% The concept index definition file used for the above paragraph looks
+% like:
+% \VerbatimInput[showtabs=true,tabsize=4,numbers=left,fontsize=\small,lastline=1]{intex.itx}
+% The file can be divided into different sections, according to the
+% kind of concepts to be declared. To set the
+% current section, use a single line that must contain exactly
+% |"% *|\meta{type}|*"|, where \meta{type} is either |ACRONYMS|,
+% |CONCEPTS|, or |PERSONS|.
+%
+% \VerbatimInput[showtabs=true,tabsize=4,numbers=left,fontsize=\small,firstline=2,lastline=10]{intex.itx}
+% the above line should mean that |\co{synsets}| in the text should be
+% indexed as if it read |\co{synset}|. However, if the plural of the
+% concept occurs first (in the [part of] document), its full-form
+% should be \emph{typeset} ``synonym set'' + ``s'' (indicated by the |#y|) in
+% the index file. In other words, it only a short-hand notation. On the
+% other hand, in the next definition, another short-hand notation |#y|
+% is used that will transform ``y'' into ``ies'' as the end of the last
+% word:
+%
+% \VerbatimInput[showtabs=true,tabsize=4,numbers=left,fontsize=\small,firstline=11]{intex.itx}
+%
+% \subsection{Compilation}
+% \label{sec:compilation}
+% \DescribeMacro{mkintex} As mentioned earlier, the package includes
+% an external program named |mkintex|. The typical usage of
+% |mkintex|, given that your document is named \meta{name}, would
+% be \co{concept}:
+%
+% \begin{enumerate}
+% \item |latex |\meta{name}|.tex|
+% \item |mkintex |\meta{name} \meta{name}|.itx -o |\meta{name}|.rix [-a acronyms.tex -p persons.tex]|
+% \item |makeindex |\meta{name}
+% \item |makeindex -o |\meta{name}|.rid |\meta{name}|.rix|
+% \item |latex |\meta{name}|.tex|
+% \end{enumerate}
+%
+% \section{Macros}
+%
+% \DescribeMacro{\InTeX}
+% This is simply a macro for typesetting the \co{InTeX logo}.
+%
+% \StopEventually{}
+%
+% \section{Implementation}
+%
+% After the customary identification,
+% \begin{macrocode}
+\def\filename{intex}%
+\ProvidesPackage{intex}[2008/10/13 v1.1
+Support for concept, acronym, and proper-name typesetting and indexing]%
+% \end{macrocode}
+% we continue by defining the package options.
+%
+% \subsection{Package Options}
+%
+% \begin{macro}{noindex}
+% \begin{macro}{\if@itx@index}
+% Let the conditional |\if@itx@index| control whether
+% \InTeX\ should generate an index or not. The default is to perform
+% indexing. The option |noindex| turns this feature off.
+% \begin{macrocode}
+\newif\if@itx@index%
+\@itx@indextrue%
+\DeclareOption{noindex}{\@itx@indexfalse}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{nowarnundef}
+% \begin{macro}{\if@itx@nowarnundef}
+% The conditional |\if@itx@nowarnundef| controls whether
+% \InTeX\ should include in-document warnings about undefined concepts
+% or not. The default is to warn about undefined concepts inside the
+% document. The |nowarnundef| option turns this feature off.
+% \begin{macrocode}
+\newif\if@itx@warn@undef%
+\@itx@warn@undeftrue%
+\DeclareOption{nowarnundef}{\@itx@warn@undeffalse}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{nomarginplain}
+% \begin{macro}{nomarginacronym}
+% \begin{macro}{nomarginperson}
+% \begin{macro}{\if@itx@margin@plain}
+% \begin{macro}{\if@itx@margin@acronym}
+% \begin{macro}{\if@itx@margin@person}
+%
+% The conditionals |\if@itx@margin@|\meta{kind}---where \meta{kind} is
+% one of |plain|, |acronym|, and |person|---control whether the short
+% version of each first-occurrence of a concept (of kind \meta{kind},
+% per significant document part) should also be typeset as a
+% margin-label.
+%
+% \begin{macrocode}
+\newif\if@itx@margin@plain%
+\newif\if@itx@margin@acronym%
+\newif\if@itx@margin@person%
+\@itx@margin@plaintrue%
+\@itx@margin@acronymtrue%
+\@itx@margin@persontrue%
+\DeclareOption{nomarginplain}{\@itx@margin@plainfalse}%
+\DeclareOption{nomarginacronym}{\@itx@margin@acronymfalse}%
+\DeclareOption{nomarginperson}{\@itx@margin@personfalse}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% Next, process the options.
+% \begin{macrocode}
+\ProcessOptions%
+% \end{macrocode}
+%
+% \subsection{External Packages}
+%
+% \begin{macro}{index}
+% Now, if |\if@itx@index| is \emph{true}, then require the package
+% |index| to be loaded. If not, we define a handy macro usually
+% defined in that package.
+% \begin{macrocode}
+\if@itx@index%
+ \RequirePackage{index}%
+ \makeindex%
+ \newindex{raw}{rix}{rid}{Index}%
+\else%
+ \def\@nearverbatim{\expandafter\strip@prefix\meaning}%
+\fi%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{marginnote}
+% Only require the marginnote package if it is really required.
+% This is done in an attempt to avoid wasting counters.
+% \begin{macrocode}
+\if@itx@margin@plain%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+\if@itx@margin@acronym%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+\if@itx@margin@person%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+% \end{macrocode}
+% Please note that the |marginnote| package will only be loaded once,
+% even if it gets required multiple times.
+% \end{macro}
+%
+% \begin{macro}{acronym}
+% \begin{macro}{ifthen}
+% Anyhow, require the |acronym| and the |ifthen| packages to be
+% loaded.
+% \begin{macrocode}
+\RequirePackage{acronym}[2008/05/28]%
+\RequirePackage{ifthen}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \subsection{The \InTeX\ Logo}
+% \begin{macro}{\InTeX}
+% Define a \TeX-ish logo for this package.
+% \begin{macrocode}
+\newcommand*{\InTeX}{\textsl{In}\kern-.07em\TeX}%
+% \end{macrocode}
+% \end{macro}
+%
+% \subsection{Font Definitions}
+%
+% The following commands define the font-selection commands used to
+% typeset the different kinds of concepts in different situations.
+%
+% \begin{macro}{\itxplaindeffont}
+% \begin{macro}{\itxplainfollowfont}
+% \begin{macro}{\itxplainmarginfont}
+% These commands are used to typeset plain concepts.
+% \begin{macrocode}
+\newcommand\itxplaindeffont[1]{\emph{#1}}%
+\newcommand\itxplainfollowfont[1]{#1}%
+\newcounter{itxpl}%
+\newcommand\@itxbasemarginfont[1]{%
+ \stepcounter{itxpl}%
+ \ifthenelse{\isodd{\pageref{itxpl-\theitxpl}}}{%
+ \raggedright\hspace{0pt}\footnotesize\textsf{#1}% odd
+ }{%
+ \raggedleft\hspace{0pt}\footnotesize\textsf{#1}% even
+ }%
+ \label{itxpl-\theitxpl}%
+}%
+\newcommand\itxplainmarginfont[1]{%
+ \@itxbasemarginfont{#1}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\itxacronymdeffont}
+% \begin{macro}{\itxacronymdefshortfont}
+% \begin{macro}{\itxacronymshortfont}
+% \begin{macro}{\itxacronymmarginfont}
+%
+% For acronyms:
+% \begin{macrocode}
+\newcommand{\itxacronymdeffont}[1]{#1}%
+\newcommand{\itxacronymdefshortfont}[1]{\emph{#1}}%
+\newcommand{\itxacronymshortfont}[1]{#1}%
+\newcommand{\itxacronymmarginfont}[1]{%
+ \@itxbasemarginfont{#1}%
+ %\raggedleft\hspace{0pt}\footnotesize\textsf{#1}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\itxpersondeffont}
+% \begin{macro}{\itxpersonfirstfont}
+% \begin{macro}{\itxpersonlastfont}
+% \begin{macro}{\itxpersonmarginfont}
+%
+% For persons:
+% \begin{macrocode}
+\newcommand{\itxpersondeffont}[1]{\emph{#1}}%
+\newcommand{\itxpersonfirstfont}[1]{#1}%
+\newcommand{\itxpersonlastfont}[1]{#1}%
+\newcommand{\itxpersonmarginfont}[1]{%
+ \@itxbasemarginfont{#1}%
+ %\raggedleft\hspace{0pt}\footnotesize\textsf{#1}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsection{The (Low-Level) Clockwork of the Package}
+%
+% \begin{macro}{co@serial}
+% First, define a counter that is used to enumerate new concept
+% definitions.
+% \begin{macrocode}
+\newcounter{co@serial}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{co@equiv@serial}
+% First, define a counter that is used to enumerate new concept
+% definitions.
+% \begin{macrocode}
+%\newcounter{co@equiv@serial}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{co@type}
+% First, define a counter that is used to enumerate new concept
+% definitions.
+% \begin{macrocode}
+\newcounter{co@type}%
+% \end{macrocode}
+% The |co@type| counter is used only inside the |\@itx| command.
+% \end{macro}
+%
+% \begin{macro}{\itxundefcomment}
+% Then, define the comment to display where use of undefined concepts
+% are detected.
+% \begin{macrocode}
+\newcommand*\itxundefcomment[1]{\emph{(undefined concept ``#1'')}}%
+% \end{macrocode}
+% \end{macro}
+%
+% Define a couple of convenience macros.
+% \begin{macrocode}
+\long\def\@firstofthree#1#2#3{#1}%
+\long\def\@secondofthree#1#2#3{#2}%
+%\newcommand*\@secondofthree[3]{#2}%
+% \end{macrocode}
+%
+% Make it possible to reset the ``defined'' flag for each concept.
+% After a reset, the next time that concept occurs, it is typeset as
+% if it's the first occurrence of that concept.
+% \begin{macrocode}
+\def\ITX@reset#1{%
+ \global\expandafter\let\csname itx@#1\endcsname\relax}%
+% \end{macrocode}
+%
+% \subsubsection{Typesetting of Margin Labels}
+% \begin{macro}{\@itxmarginlabel}
+%
+% Define a macro to typeset the concepts at first-occurrence points in
+% the margin.
+%
+% \begin{macrocode}
+\newcommand*\@itxmarginlabel[2]{%
+ \hspace{0pt}%
+% \end{macrocode}
+%
+% The second argument is the \meta{identity} of the entity we're
+% typesetting, while the first argument signals its \meta{type}; that
+% is, whether we're typesetting a\ldots
+%
+% \begin{macrocode}
+ \ifcase#1%
+% \end{macrocode}
+ % \ldots plain concept, \ldots
+% \begin{macrocode}
+ \if@itx@margin@plain%
+ \marginpar{\itxplainmarginfont{\ITX@itxs{#1}{#2}}}%
+ %\marginnote{\itxplainmarginfont{\ITX@itxs{#1}{#2}}}%
+ \fi%
+ \or%
+% \end{macrocode}
+ % \ldots an acronym, \ldots
+% \begin{macrocode}
+ \if@itx@margin@acronym%
+ \marginpar{\itxacronymmarginfont{\ITX@itxs{#1}{#2}}}%
+ \fi%
+ \or%
+% \end{macrocode}
+ % \ldots or a person's name.
+% \begin{macrocode}
+ \if@itx@margin@person%
+ \marginpar{\itxpersonmarginfont{\ITX@itxl{#1}{#2}}}%
+ \fi%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\ITX@used}
+% Value to flag a concept as used.
+% \begin{macrocode}
+\newcommand*\ITX@used{@<>@<>@}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ITX@get}
+% \begin{macrocode}
+\newcommand*\ITX@get[2]{%
+ \ifx#1\relax%
+ \else%
+ \expandafter#2#1%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\itxplainarea}
+% \begin{macro}{\itxacronymarea}
+% \begin{macro}{\itxpersonarea}
+% \begin{macro}{\@itxarea}
+% Significant-area definitions. When these counters change, the
+% concepts concerned will be typeset as first occurrences.
+% \begin{macrocode}
+\newcommand*\itxplainarea{\thesubparagraph:\thepage}%
+\newcommand*\itxacronymarea{\thechapter}%
+\newcommand*\itxpersonarea{\thesubsubsection}%
+\newcommand*\@itxarea[1]{%
+ \ifcase#1%
+ {\itxplainarea}%
+ \or%
+ {\itxacronymarea}%
+ \or%
+ {\itxpersonarea}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\itx@last@pos0}
+% \begin{macro}{\itx@last@pos1}
+% \begin{macro}{\itx@last@pos2}
+% The default (empty) area definitions.
+% \begin{macrocode}
+\def\itx@last@pos0{}%
+\def\itx@last@pos1{}%
+\def\itx@last@pos2{}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\ITX@itxs}
+% \begin{macrocode}
+\newcommand*\ITX@itxs[2]{%
+ \csname fnss@\number#2\endcsname%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ITX@itxl}
+% \begin{macrocode}
+\newcommand*\ITX@itxl[2]{%
+ \csname fnsl@\number#2\endcsname%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\itxs}
+% The syntax is |\itxs{|\meta{type}|}{|\meta{identity}|}|. A
+% wrapper for |\@itxs|.
+% \begin{macrocode}
+\newcommand*{\itxs}[2]{%
+ \texorpdfstring{\protect\@itxs{#1}{#2}}{#1}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxs}
+% The syntax is |\@itxs{|\meta{type}|}{|\meta{identity}|}|.
+% Typesets the concept referred to by \meta{identity} in its
+% \emph{short form} according to its \meta{type}.
+% \begin{macrocode}
+\newcommand*{\@itxs}[2]{%
+ \ifcase\number#1%
+% \end{macrocode}
+% \begin{description}
+% \item[Plain Concept]
+% \begin{macrocode}
+ \itxplainfollowfont{\ITX@itxs{#1}{#2}}%
+ \or%
+% \end{macrocode}
+% \item[Acronym]
+% \begin{macrocode}
+ \itxacronymshortfont{\ITX@itxs{#1}{#2}}%
+ \or%
+% \end{macrocode}
+% \item[Person]
+% \begin{macrocode}
+ \itxpersonlastfont{\ITX@itxl{#1}{#2}}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{description}
+% \end{macro}
+%
+% \begin{macro}{\itxl}
+% The syntax is |\itxl{|\meta{type}|}{|\meta{identity}|}|. A
+% wrapper for |\@itxl|.
+% \begin{macrocode}
+\newcommand*{\itxl}{\protect\@itxl}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxl}
+% The syntax is |\@itxl{|\meta{type}|}{|\meta{identity}|}|.
+% Typesets the concept referred to by \meta{identity} in its
+% \emph{long form} according to its \meta{type}.
+% \begin{macrocode}
+\newcommand*{\@itxl}[2]{%
+ %\ITX@itxl{#1}{#2}%
+ \ifcase\number#1%
+% \end{macrocode}
+% \begin{description}
+% \item[Plain Concept] Typeset the concept, \ldots
+% \begin{macrocode}
+ \itxplainfollowfont{\ITX@itxs{#1}{#2}}\nolinebreak %
+ \or%
+% \end{macrocode}
+% \item[Acronym] Typeset the concept (note in-between margin
+% label), \ldots
+% \begin{macrocode}
+ \itxacronymdeffont{\ITX@itxl{#1}{#2}}%
+ \or%
+% \end{macrocode}
+% \item[Person] Typeset the concept (note the in-between margin
+% label), \ldots
+% \begin{macrocode}
+ \itxpersondeffont{%
+ \itxpersonfirstfont{\ITX@itxs{#1}{#2}} %
+ %\nolinebreak[3] %
+ \itxpersonlastfont{\ITX@itxl{#1}{#2}}%
+ }%
+ \fi%
+}%
+% \end{macrocode}
+% \end{description}
+% \end{macro}
+%
+% \begin{macro}{\itxf}
+% The syntax is |\itxf{|\meta{type}|}{|\meta{identity}|}|. A wrapper
+% for |\@itxf|.
+% \begin{macrocode}
+\newcommand*{\itxf}[2]{%
+ \texorpdfstring{\protect\@itxf{#1}{#2}}{\ITX@itxl{#1}{#2} (#1)}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxf}
+% The syntax is |\@itxf{|\meta{type}|}{|\meta{identity}|}|.
+% Typesets the concept referred to by \meta{identity} in its
+% \emph{full form} according to its \meta{type}.
+% \begin{macrocode}
+\newcommand*{\@itxf}[2]{%
+ \ifcase\number#1%
+% \end{macrocode}
+% \begin{description}
+% \item[Plain Concept] Typeset margin-notes if applicable, \ldots
+% \begin{macrocode}
+ \@itxmarginlabel{#1}{#2}%
+% \end{macrocode}
+% \ldots typeset the concept, \ldots
+% \begin{macrocode}
+ \itxplaindeffont{\ITX@itxs{#1}{#2}}\nolinebreak %
+ \or%
+% \end{macrocode}
+% \item[Acronym] Typeset the concept (note in-between margin
+% label), \ldots
+% \begin{macrocode}
+ \itxacronymdeffont{%
+ \ITX@itxl{#1}{#2} %
+ %\nolinebreak[3] %
+% \end{macrocode}
+% \ldots typeset margin-notes if applicable, \ldots
+% \begin{macrocode}
+ \@itxmarginlabel{#1}{#2}%
+% \end{macrocode}
+% \ldots continue typesetting the concept.
+% \begin{macrocode}
+ \itxacronymdefshortfont{%
+ \itxacronymshortfont{(\ITX@itxs{#1}{#2})}}%
+ }%
+ \or%
+% \end{macrocode}
+% \item[Person] Typeset the concept (note the in-between margin
+% label), \ldots
+% \begin{macrocode}
+ \itxpersondeffont{%
+ \itxpersonfirstfont{%
+ \ITX@itxs{#1}{#2}} %
+ %\nolinebreak[3] %
+% \end{macrocode}
+% \ldots typeset margin-notes if applicable, \ldots
+% \begin{macrocode}
+ \@itxmarginlabel{#1}{#2}%
+% \end{macrocode}
+% \ldots continue typesetting the concept.
+% \begin{macrocode}
+ \itxpersonlastfont{%
+ \ITX@itxl{#1}{#2}%
+ }%
+ }%
+ \fi%
+% \end{macrocode}
+% \end{description}
+% Now, do the used/unused accounting.
+% \begin{macrocode}
+ \expandafter\ifx\csname itx@#2\endcsname\ITX@used%
+ %\relax%
+ \else%
+ \global\expandafter\let\csname itx@#2\endcsname\ITX@used%
+ %\ITX@addtoclearlist{#2}% MTR
+ \fi%
+ %\ITX@logged{#2} MTR
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxrecordarea}
+% The syntax is |\@itxrecordarea{|\meta{type}|}{|\meta{identity}|}|.
+% A macro used to update the current used/non-used status of each
+% concept. This macro only use the \emph{type} and \emph{numeric
+% id} of the concept.
+% \begin{macrocode}
+\newcommand*{\@itxrecordarea}[2]{%
+% \end{macrocode}
+ % Record this area:
+% \begin{macrocode}
+ \edef\curr@pos{\@itxarea{#1}}%
+ %\PackageWarning{InTeX}{Current position for type "#1" is "\curr@pos"}%
+% \end{macrocode}
+ % Remember the last area where this concept (second argument) was used.
+% \begin{macrocode}
+ \edef\last@pos{\csname itx@last@pos#1@#2\endcsname}%
+ \ifx\curr@pos\last@pos%
+% \end{macrocode}
+ % We're still in the same area. Hence, we do nothing.
+% \begin{macrocode}
+ \else%
+% \end{macrocode}
+ % The area has changed.
+% \begin{macrocode}
+ \ITX@reset{#2}%
+ \fi%
+ \expandafter\xdef\csname itx@last@pos#1@#2\endcsname{\curr@pos}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itx@init@nonbookmode}
+% The syntax is |\@itx@init@nonbookmode|. This command is responsible
+% for setting up miscellaneous aspects of the package when used in
+% nonbook environments.
+% \begin{macrocode}
+\newcommand\@itx@init@nonbookmode{%
+ \newcommand*{\@itxtypeset}[3]{% Article-mode.
+ \ifx##3A%
+ %\PackageWarning{InTeX}{Typesetting format is automatic}%
+ \expandafter\ifx\csname itx@##2\endcsname\ITX@used%
+% \end{macrocode}
+% The concept was last used in this area. Hence, it is typeset in its
+% short form.
+% \begin{macrocode}
+ \itxs{##1}{##2}%
+ \else%
+% \end{macrocode}
+% The concept has not yet been used, or it was last used in another
+% area. Hence, it is typeset in its full form.
+% \begin{macrocode}
+ \itxf{##1}{##2}%
+ \fi%
+ \else%
+% \end{macrocode}
+% Explicit selected typesetting format.
+% \begin{macrocode}
+ %\PackageWarning{InTeX}{Typesetting format = "##3"}%
+ \ifx##3S\itxs{##1}{##2}\fi%
+ \ifx##3L\itxl{##1}{##2}\fi%
+ \ifx##3F\itxf{##1}{##2}\fi%
+ \fi%
+ }%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itx@init@bookmode}
+% The syntax is |\@itx@init@bookmode|. This command is responsible
+% for setting up miscellaneous aspects of the package when used in
+% book environments.
+% \begin{macrocode}
+\newcommand\@itx@init@bookmode{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite book/report document
+ classes\@gobble}%
+ \newcommand*{\@itxtypeset}[3]{% Book/report-mode.
+ \ifx##3A%
+ %\PackageWarning{InTeX}{Typesetting format is automatic}%
+% \end{macrocode}
+% \emph{Automatic} typesetting.
+% \begin{macrocode}
+ \if@mainmatter%
+ \expandafter\ifx\csname itx@##2\endcsname\ITX@used%
+% \end{macrocode}
+% The concept was last used in this area. Hence, it is typeset in its
+% short form.
+% \begin{macrocode}
+ \itxs{##1}{##2}%
+ \else%
+% \end{macrocode}
+% The concept has not yet been used, or it was last used in another
+% area. Hence, it is typeset in its full form.
+% \begin{macrocode}
+ \itxf{##1}{##2}%
+ \fi%
+ \else%
+% \end{macrocode}
+% Either in frontmatter or in backmatter.
+% \begin{macrocode}
+ \itxl{##1}{##2}%
+ \fi%
+ \else%
+% \end{macrocode}
+% Explicit selected typesetting format.
+% \begin{macrocode}
+ %\PackageWarning{InTeX}{Typesetting format = "##3"}%
+ \ifx##3S\itxs{##1}{##2}\fi%
+ \ifx##3L\itxl{##1}{##2}\fi%
+ \ifx##3F\itxf{##1}{##2}\fi%
+ \fi%
+ }%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxtypeset}
+% The syntax is
+% |\@itxtypeset{|\meta{type}|}{|\meta{identity}|}{|\meta{format
+% code}|}|. This command is responsible for typesetting the
+% $\left(\meta{type}, \meta{identity}\right)$ tuple.
+%
+% If the \meta{identity} was referred to in the frontmatter (part of
+% books and reports), then a different set of rules should dictate
+% the typesetting of the according concept. Therefore, first find
+% out if the package is used in an article, which does not have any
+% |\if@mainmatter| macro.
+% \begin{macrocode}
+\newif\if@itx@bookmode%
+\@itx@bookmodetrue%
+% \end{macrocode}
+% Adjust the defaults so they make sense when used with the article
+% document class.
+% \begin{macrocode}
+\@ifclassloaded{article}{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite the article document
+ class\@gobble}%
+ \@itx@init@nonbookmode%
+ \@itx@bookmodefalse%
+}{}%
+% \end{macrocode}
+% Adjust the defaults so they make sense when used with the beamer
+% document class.
+% \begin{macrocode}
+\@ifclassloaded{beamer}{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite the beamer document
+ class\@gobble}%
+ \@itx@init@nonbookmode%
+ \@itx@bookmodefalse%
+ \renewcommand*\itxacronymarea{0}%
+ \@itx@margin@plainfalse%
+ \@itx@margin@acronymfalse%
+ \@itx@margin@personfalse%
+}{}%
+% \end{macrocode}
+% Assume that the current document class is one of the book or report
+% classes, or another class with a definition of |\thechapter|.
+% \begin{macrocode}
+\if@itx@bookmode%
+ \@itx@init@bookmode%
+\fi%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxplain}
+% The syntax is
+% |\@itxplain{|\meta{type}|}{|\meta{identity}|}{|\meta{format
+% code}|}|. This command is responsible for keeping track of
+% where the $\left(\meta{type}, \meta{identity}\right)$ tuple was
+% last used and for typesetting it accordingly.
+%
+% The \meta{format code} can be one of
+% \begin{description}
+% \item[|A|] for \emph{automatic} selection of any of the following,
+% explicit, format codes.
+% \item[|S|] for typesetting the entry in its \emph{short} form.
+% \item[|L|] for typesetting the entry in its \emph{long} form.
+% \item[|F|] for \emph{full-form} typesetting.
+% \end{description}
+% \begin{macrocode}
+\newcommand*{\@itxplain}[3]{%
+% \end{macrocode}
+%
+% First, update the ``last used'' status of the current concept so
+% that it refers to the current area.
+% \begin{macrocode}
+ \@itxrecordarea{#1}{#2}%
+% \end{macrocode}
+% Then, typeset the concept.
+% \begin{macrocode}
+ \@itxtypeset{#1}{#2}{#3}%
+}%
+% \end{macro}
+%
+% \begin{macro}{\@itxalias}
+% Define the identity of the equivalent entry. Get the identity of the main
+% index entry for which this is an alias. Keep the original
+% definition as |\@orig|. Redefine the main entry (as in
+% |\expandafter\gdef\csname fn@#1\endcsname{{#2}{#2}}|.) Now,
+% typeset the alias by using the main index entry identity. Finally,
+% reset the definition of the main entry. \textbf{|FIXME:|} This
+% command is (probably) not used at the moment (2007-07-14) and is
+% not doing what this paragraph states.
+% \begin{macrocode}
+\newcommand*{\@itxalias}[2]{%
+ \edef\@mainserial{\expandafter\@firstoftwo#2}%
+ \edef\@equivserial{\expandafter\@secondoftwo#2}%
+% \end{macrocode}
+% Record usage of the main concept entry.
+% \begin{macrocode}
+ %\@itxrecordarea{#1}{\@mainserial}%
+ \@itxplain{#1}{\@equivserial}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itx@fakeindex}
+% If no index is to be generated, we still need some output for
+% |mkintex| to work with. Hence, this command substitutes the
+% |\index| command in the |index| package, and makes sure that an
+% index entry with \emph{page} equal to |\thepage| is written to the
+% auxiliary file instead. However, the \emph{page} value will then
+% be used only for providing more detailed warnings about references
+% to undefined concepts.
+% \begin{macrocode}
+\newcommand{\@itx@fakeindex}[1]{%
+ \begingroup%
+ \edef\@tempa{%
+ \write\@auxout{%
+ \string\@writefile{raw}{%
+ \string\indexentry{#1}{\thepage}%
+ }%
+ }%
+ }%
+ \expandafter\endgroup\@tempa%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\co}
+%
+% The |\co| command is the only command the user should \emph{need}
+% to use. The syntax is |\co{|\meta{identity}|}[|\meta{format
+% code}|]|, where \meta{identity} refers to a concept and
+% \meta{format code} is an optional argument that can be used to
+% force a particular kind of typesetting. The idea is that the
+% |\co{}| command should be wrapped around every concept the user
+% want to either typeset or index in a special and consistent way
+% (or both). Note that |\co| is a wrapper for the |\@itx| command.
+% Please see the definition of |\@itxplain| for a description of the
+% available format codes. The default \meta{format code} is |A|.
+% \begin{macrocode}
+%\newcommand*{\co}{\protect\@itx}%
+\newcommand{\co}{\@itx}%
+\newcommand{\coS}[1]{\@itx[S]{#1}}%
+\newcommand{\coL}[1]{\@itx[L]{#1}}%
+\newcommand{\coF}[1]{\@itx[F]{#1}}%
+%\DeclareRobustCommand*{\co}{\protect\@itx}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\@itx}
+% The |\@itx| command works just as described for |\co| above.
+% Hence, |#1| is the \meta{format code}, and |#2| is the
+% \meta{identity}.
+% \begin{macrocode}
+%\newcommand*{\@itx}[2][A]{%
+\DeclareRobustCommand*{\@itx}[2][A]{%
+ \def\@tempa{#2}%
+% \end{macrocode}
+% Handle, e.g., backslashes.
+% \begin{macrocode}
+ \edef\@tempb{\@nearverbatim\@tempa}%
+% \end{macrocode}
+%
+% If \InTeX\ should generate an index, simply use the |index| package
+% to write the identifying index entry. The intricacies of how this
+% concept should be indexed is handled externally by the |mkintex|
+% program that is part of the \InTeX\ package.
+%
+% \begin{macrocode}
+ \if@itx@index%
+ \index[raw]{#2}%
+ \else%
+ \@itx@fakeindex{\@tempb}%
+ \fi%
+% \end{macrocode}
+%
+% Define a new conditional, |found|, to signal whether the
+% \meta{identity} is found.
+% \begin{macrocode}
+ \newif\iffound%
+% \end{macrocode}
+%
+% Now, let the |co@type| counter loop through the values $\left[0, 1,
+% 2\right]$.
+% \begin{macrocode}
+ \setcounter{co@type}{0}%
+ \loop\ifnum\theco@type<3%
+% \end{macrocode}
+% Check to see if the \meta{identity} is an (acronym or person)
+% \emph{alias} or a \emph{main} entry. If it is an \emph{alias},
+% there exists a variable named |fn|$n$|e@|\meta{identity} (note the
+% extra `|e|'). However, if \meta{identity} refers to a \emph{main}
+% entry, a variable named |fn|$n$|@|\meta{identity} exists; that is,
+% without the `|e|' before the `|@|'. Also, it should be noted that
+% \emph{no alias can exists without a main entry with the same
+% \meta{identity}}.
+%
+% If an expansion of \meta{identity} is found, typeset it accordingly
+% and flag the finding by setting |\iffound|.
+% \begin{macrocode}
+ \expandafter\ifx\csname fn\number\theco@type e@\@tempb\endcsname\relax%
+ \expandafter\ifx\csname fn\number\theco@type @\@tempb\endcsname\relax%
+% \end{macrocode}
+% The \meta{identity} may refer to both a main entry \emph{and} an
+% alias entry (because of the requirement mentioned above). Do
+% nothing. The reason the code is written in this way is to implement
+% a preference to main entries over alias entries (see the order
+% below).
+% \begin{macrocode}
+ % \PackageWarning{InTeX}{Main AND alias reference `#2' occurred}%
+ % The reference refers to both main _and_ alias entries. Do
+ % nothing, this will be resolved through the |else|-cases
+ % immediately below.
+ \else%
+% \end{macrocode}
+% The \meta{identity} refers to a main-entry.
+% \begin{macrocode}
+ %\PackageInfo{InTeX}{Main reference `#2' occurred}%
+ \edef\co@id{\csname fn\number\theco@type @\@tempb\endcsname}%
+ \@itxplain{\number\theco@type}{\co@id}{#1}%
+ \foundtrue%
+ \fi%
+% \else%
+% \end{macrocode}
+% The \meta{identity} refers to an alias-entry.
+% \begin{macrocode}
+% \PackageWarning{InTeX}{Alias reference `#2' occurred}%
+% % XXX: It seems that this case never occurrs.
+% \edef\co@id{\csname fn\number\theco@type e@\@tempb\endcsname}%
+% \@itxalias{\number\theco@type}{\co@id}%
+% \foundtrue%
+ \fi%
+% \end{macrocode}
+% Increase |co@type| by $1$ and perform a new iteration of the loop.
+% In other words, check if the reference (\meta{identity}) is referring to
+% another kind of entry.
+% \begin{macrocode}
+ \stepcounter{co@type}%
+ \repeat%
+% \end{macrocode}
+% If no expansion of \meta{identity} could be found, warn the user.
+% Furthermore, an in-document warning will be typeset if
+% |@itx@warn@undef| is \emph{true}.
+% \begin{macrocode}
+ \iffound%
+% Do nothing.
+ \else%
+ \PackageWarning{InTeX}{Reference `#2' to undefined concept}%
+ \if@itx@warn@undef%
+ \textbf{\itxundefcomment{#2}}%
+ \else%
+ #2%
+ \fi%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\personused}
+% \begin{macrocode}
+\newcommand*{\personused}[1]{%
+ \expandafter\ifx\csname pnused@#1\endcsname\PN@used%
+ \relax%
+ \else%
+ \global\expandafter\let\csname pnused@#1\endcsname\PN@used%
+ \global\let\PN@populated\PN@used%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@itxdefineforms}
+% \begin{macrocode}
+\newcommand\@itxdefineforms[3]{%
+ \expandafter\gdef\csname fnss@\number#1\endcsname{#2}%
+ \expandafter\gdef\csname fnsl@\number#1\endcsname{#3}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@newentry}
+% The macros |\new|\meta{type}, where
+% \meta{type} $\in \{|acronym|, |concept|, |person|\}$ (as described
+% below), all call |\@newentry| with an additional first argument,
+% namely the numeric \meta{type} identifier of the new entry. The
+% syntax is
+% \begin{displaymath}
+% |\@newentry{|\meta{type}|}{|\meta{reference}|}{|\meta{typeset 1}|}{|\meta{typeset 2}|}|,
+% \end{displaymath}
+% where \meta{reference} is the string later refered to as
+% |\co{|\meta{string}|}|, and \meta{typeset 1} and \meta{typeset 2}
+% define how the concept will be typeset where it was refered to in
+% the text. The exact meaning of \meta{typeset 1} and \meta{typeset
+% 2} depends on what \meta{type} this entry has.
+% \begin{macrocode}
+\newcommand\@newentry[4]{%
+ \def\@tempa{#2}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ %
+ \stepcounter{co@serial}%
+ %\PackageWarning{init}{serial counter = \expandafter\theco@serial}%
+ \expandafter\xdef\csname fn\number#1@\@tempb\endcsname{%
+ \number\theco@serial}%
+ %\PackageWarning{init}{Def: \meaning\csname fn\number#1@\@tempb\endcsname}%
+ \@itxdefineforms{\theco@serial}{#3}{#4}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newconcept}
+% \begin{macrocode}
+\newcommand*\newconcept[3]{%
+ \@newentry{0}{#1}{#2}{#3}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newacronym}
+% \begin{macrocode}
+\newcommand*\newacronym[3]{%
+ \@newentry{1}{#1}{#2}{#3}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newperson}
+% The syntax is
+% \begin{displaymath}
+% |\newperson{|\meta{reference}|}{|\meta{short-form typeset}|}{|\meta{full-form typeset}|}|.
+% \end{displaymath}
+% \begin{macrocode}
+\newcommand*\newperson[3]{%
+ \@newentry{2}{#1}{#2}{#3}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@newentryequiv}
+% The syntax for this command is
+% \begin{displaymath}
+% |\@newentryequiv{|\meta{type}|}{|\meta{parent}|}{|\meta{typeset}|}{|\meta{reference}|}{|\meta{full-form typeset}|}|,
+% \end{displaymath}
+% where \meta{type} $\in \{|acronym|, |concept|, |person|\}$,
+% \meta{parent} is the (reference) identity of the concept for which
+% this is an equivalent, \meta{typeset} defines how this equivalent
+% should be typeset in text (short-form if it is an acronym),
+% \meta{reference} is the identity of this entry (referred to as
+% |\co{|\meta{reference}|}|), and \meta{full-form typeset} defines
+% how this concept should be typeset in the text in its full-form.
+%
+% Note that the macros |\new|\meta{type}|equiv|, where \meta{type}
+% $\in \{|acronym|, |concept|, |person|\}$, all are wrappers for
+% this command.
+% \begin{macrocode}
+\newcommand*\@newentryequiv[5]{%
+ \newif\iffound%
+ \def\@tempa{#2}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ \expandafter\ifx\csname fn\number#1 @\@tempb\endcsname\relax%
+% \end{macrocode}
+% Nothing is done if |\csname fn\number#1 @\@tempb\endcsname| is not
+% defined here, but notice that the default value of |found| is
+% \emph{false}.
+% \begin{macrocode}
+ \else%
+ \foundtrue%
+ \edef\co@id{\csname fn\number#1@\@tempb\endcsname}%
+ %\PackageWarning{init}{Found `\@tempb' (type=\number#1, serial=\co@id)}%
+% \end{macrocode}
+% Store the \emph{short} and the \emph{long}
+% versions of the alias, in that order.
+% \begin{macrocode}
+ \stepcounter{co@serial}%
+ \@itxdefineforms{\theco@serial}{#3}{#5}%
+% \end{macrocode}
+% Store the numeric identity of the concept alias.
+% \begin{macrocode}
+ \def\@tempa{#4}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ \expandafter\xdef\csname fn\number#1 e@\@tempb\endcsname{%
+ {\co@id}{\theco@serial}}%
+ \fi%
+ \iffound%
+ \else%
+ %\PackageWarning{InTeX}{Can't find `#2' for sub-concept `#3'}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\newconceptequiv}
+% \begin{macro}{\newacronymequiv}
+% \begin{macro}{\newpersonequiv}
+% Wrappers for the |\@newentryequiv| command, where each wrapper
+% specifies the entry's \meta{type} through the first argument to
+% |\@newentryequiv|.
+% \begin{macrocode}
+\newcommand*\newconceptequiv[4]{%
+ \@newentryequiv{0}{#1}{#2}{#3}{#4}%
+}%
+\newcommand*\newacronymequiv[4]{%
+ \@newentryequiv{1}{#1}{#2}{#3}{#4}%
+}%
+\newcommand*\newpersonequiv[4]{%
+ \@newentryequiv{2}{#1}{#2}{#3}{#4}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsection{The Internal \InTeX\ File}
+% \begin{macro}{\InTeX}
+% After the first run of {Make\InTeX}, the file |\jobname.ito| will
+% contain the different concept definitions. The |.ito| file is
+% loaded at the beginning of the document.
+% \begin{macrocode}
+\AtBeginDocument{\@input{\jobname.ito}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \printindex[raw]
+% \Finale
+\endinput%
diff --git a/support/intex/latex/intex.glo b/support/intex/latex/intex.glo
new file mode 100644
index 0000000000..8ca6fcebe8
--- /dev/null
+++ b/support/intex/latex/intex.glo
@@ -0,0 +1 @@
+\glossaryentry{v1.0> =General:>Initial version}{1}
diff --git a/support/intex/latex/intex.idx b/support/intex/latex/intex.idx
new file mode 100644
index 0000000000..f5cc32d0ae
--- /dev/null
+++ b/support/intex/latex/intex.idx
@@ -0,0 +1,6 @@
+\indexentry {intex\actualchar \string \verb \quotechar *\verbatimchar \bslash intex\verbatimchar \encapchar usage|hyperpage}{1}
+\indexentry {co\actualchar \string \verb \quotechar *\verbatimchar \bslash co\verbatimchar \encapchar usage|hyperpage}{1}
+\indexentry {acronym\actualchar \string \verb \quotechar *\verbatimchar \bslash acronym\verbatimchar \encapchar usage|hyperpage}{1}
+\indexentry {index\actualchar \string \verb \quotechar *\verbatimchar \bslash index\verbatimchar \encapchar usage|hyperpage}{1}
+\indexentry {mkintex\actualchar \string \verb \quotechar *\verbatimchar \bslash mkintex\verbatimchar \encapchar usage|hyperpage}{6}
+\indexentry {InTeX\actualchar \string \verb \quotechar *\verbatimchar \bslash InTeX\verbatimchar \encapchar usage|hyperpage}{6}
diff --git a/support/intex/latex/intex.ilg b/support/intex/latex/intex.ilg
new file mode 100644
index 0000000000..9fe6343295
--- /dev/null
+++ b/support/intex/latex/intex.ilg
@@ -0,0 +1,6 @@
+This is makeindex, version 2.15 [TeX Live 2009] (kpathsea + Thai support).
+Scanning input file intex.rix....done (33 entries accepted, 0 rejected).
+Sorting entries....done (176 comparisons).
+Generating output file intex.rid....done (64 lines written, 0 warnings).
+Output written in intex.rid.
+Transcript written in intex.ilg.
diff --git a/support/intex/latex/intex.ind b/support/intex/latex/intex.ind
new file mode 100644
index 0000000000..2dcce8733b
--- /dev/null
+++ b/support/intex/latex/intex.ind
@@ -0,0 +1,25 @@
+\begin{theindex}
+
+ \item acronym\actualchar \string \verb \quotechar *\verbatimchar \bslash acronym\verbatimchar \encapchar usage,
+ \hyperpage{1}
+
+ \indexspace
+
+ \item co\actualchar \string \verb \quotechar *\verbatimchar \bslash co\verbatimchar \encapchar usage,
+ \hyperpage{1}
+
+ \indexspace
+
+ \item index\actualchar \string \verb \quotechar *\verbatimchar \bslash index\verbatimchar \encapchar usage,
+ \hyperpage{1}
+ \item InTeX\actualchar \string \verb \quotechar *\verbatimchar \bslash InTeX\verbatimchar \encapchar usage,
+ \hyperpage{6}
+ \item intex\actualchar \string \verb \quotechar *\verbatimchar \bslash intex\verbatimchar \encapchar usage,
+ \hyperpage{1}
+
+ \indexspace
+
+ \item mkintex\actualchar \string \verb \quotechar *\verbatimchar \bslash mkintex\verbatimchar \encapchar usage,
+ \hyperpage{6}
+
+\end{theindex}
diff --git a/support/intex/latex/intex.ito b/support/intex/latex/intex.ito
new file mode 100644
index 0000000000..26b4d04ff1
--- /dev/null
+++ b/support/intex/latex/intex.ito
@@ -0,0 +1,63 @@
+\newconcept{Python}{Python}{XC.0}
+\newconcept{Python}{Python}{XC.1}
+\newconcept{concept}{concept}{XC.0}
+\newconcept{concept}{concept}{XC.1}
+\newconcept{acronym concept}{acronym}{XC.0}
+\newconcept{acronym}{acronym}{XC.1}
+\newconcept{person concept}{person}{XC.0}
+\newconcept{person}{person}{XC.1}
+\newconcept{concepts}{concepts}{XC.0}
+\newconcept{concepts}{concepts}{XC.1}
+\newconcept{acronym concepts}{acronym}{XC.0}
+\newconcept{person concepts}{person}{XC.0}
+\newconcept{plain concepts}{plain}{XC.0}
+\newconcept{plain}{plain}{XC.1}
+\newconcept{plain concept}{plain}{XC.0}
+\newconcept{sub-concepts}{sub-concepts}{XC.0}
+\newconcept{sub-concepts}{sub-concepts}{XC.1}
+\newacronym{H2O}{H$_{2}$O}{dihydrogen monoxide}
+\newacronym{H2O reserve}{H$_{2}$O reserve}{dihydrogen monoxide reserve}
+\newacronym{IDs}{IDs}{identities}
+\newacronym{ID}{ID}{identity}
+\newacronym{Swedish SIMPLE}{Swedish SIMPLE}{\textit{Swedish \textit{Semantic Information for Multifunctional Plurilingual Lexica}}}
+\newacronym{SIMPLE}{SIMPLE}{\textit{Semantic Information for Multifunctional Plurilingual Lexica}}
+\newconcept{compound-word analyzer}{com\-pound-word analyzer}{XC.0}
+\newconcept{compound-word analyzer}{com\-pound-word analyzer}{XC.1}
+\newconcept{Norwegian compound-word analysis}{Norwegian com\-pound-word analysis}{XC.0}
+\newconcept{Norwegian compound-word analysis}{Norwegian com\-pound-word analysis}{XC.1}
+\newconcept{non-deverbal verb compounds}{non-deverbal verb com\-pounds}{XC.0}
+\newconcept{non-deverbal verb compounds}{non-deverbal verb com\-pounds}{XC.1}
+\newconcept{Bokmålsordboka}{\textit{Bokmålsordboka}}{XC.0}
+\newconcept{Bokmålsordboka}{\textit{Bokmålsordboka}}{XC.1}
+\newconcept{compounds}{com\-pounds}{XC.0}
+\newconcept{compounds}{com\-pounds}{XC.1}
+\newconcept{carnivore}{carnivore}{XC.0}
+\newconcept{carnivore}{carnivore}{XC.1}
+\newconcept{meat eater}{m$^{\textrm{e}}$a$_{\textrm{t}}$ eater}{XC.0}
+\newconcept{meat eater}{m$^{\textrm{e}}$a$_{\textrm{t}}$ eater}{XC.1}
+\newconcept{feline}{feline}{XC.0}
+\newconcept{feline}{feline}{XC.1}
+\newconcept{canine}{canine}{XC.0}
+\newconcept{canine}{canine}{XC.1}
+\newconcept{meat eaters}{m$^{\textrm{e}}$a$_{\textrm{t}}$ eaters}{XC.0}
+\newconcept{meat eaters}{m$^{\textrm{e}}$a$_{\textrm{t}}$ eaters}{XC.1}
+\newconcept{water}{water}{XC.0}
+\newconcept{water}{water}{XC.1}
+\newconcept{Carnivore}{Carnivore}{XC.0}
+\newconcept{Carnivore}{Carnivore}{XC.1}
+\newconcept{index}{index}{XC.0}
+\newconcept{index}{index}{XC.1}
+\newconcept{indices}{indices}{XC.0}
+\newconcept{indices}{indices}{XC.1}
+\newconcept{vertex}{vertex}{XC.0}
+\newconcept{vertex}{vertex}{XC.1}
+\newconcept{vertices}{vertices}{XC.0}
+\newconcept{vertices}{vertices}{XC.1}
+\newconcept{dog}{dog}{XC.0}
+\newconcept{dog}{dog}{XC.1}
+\newconcept{dogs}{dogs}{XC.0}
+\newconcept{dogs}{dogs}{XC.1}
+\newperson{EAPK}{}{the King}
+\newperson{EAP}{Elvis Aaron}{Presley}
+\newconcept{InTeX logo}{{\InTeX\ logo}}{XC.0}
+\newconcept{InTeX logo}{{\InTeX\ logo}}{XC.1}
diff --git a/support/intex/latex/intex.itx b/support/intex/latex/intex.itx
new file mode 100644
index 0000000000..c9eadd07a8
--- /dev/null
+++ b/support/intex/latex/intex.itx
@@ -0,0 +1,84 @@
+% -*- latex -*-
+%
+% $Id$
+%
+% name=main
+% default_inflection=singular
+%
+% Copyright (C) 2005--2007 by Martin Thorsen Ranang
+%
+
+% In general, to refer to the full-form of a concept, use the \cof
+% macro.
+%
+% *ACRONYMS*
+AI Artificial Intelligence
+ AIC - Complete
+
+H2O@H$_{2}$O dihydrogen monoxide
+ - reserve
+
+ID identity
+
+SIMPLE \textit{Semantic Information for Multifunctional Plurilingual Lexica} :sort_as=Semantic Information for Multifunctional Plurilingual Lexica
+ Swedish - \textit{Swedish -}
+
+synset synonym set
+
+% *PEOPLE*
+EAP Presley, Elvis Aaron
+EAPK King, the --> EAP
+JFK Kennedy, John Fitzgerald
+MLK King, Martin Luther
+Madonna Madonna
+VWvG van Gogh, Vincent Willem
+
+% *CONCEPTS*
+Bokmålsordboka@\textit{Bokmålsordboka} :sort_as=Bokmålsordboka
+
+carnivore
+ feline
+ domestic cat
+ tiger
+ canine
+ Gray Wolf
+ domestic dog
+compound@com\\\-pound
+ -\-word analyzer
+ non\-deverbal verb -
+ Norwegian -\-word analysis
+concept
+ acronym (-)
+ person (-)
+ plain (-)
+ sub\--
+
+dog :sort_as=sog me bold :comment=\textit{(explicitly sorted)}
+
+idea
+index
+
+(meat eater)@{m$^{\textrm{e}}$a$_{\textrm{t}}$ eater} --> carnivore
+
+synonymy
+synonym --> synonymy
+ direct -
+ indirect -
+
+(InTeX logo)@{{\InTeX\ logo}}
+
+Python
+
+TeXnician@{\TeX}nician
+ -'s tool
+
+vertex
+
+water --> H2O
+
+% Local Variables:
+% mode: latex
+% TeX-master: t
+% ispell-local-dictionary: "american"
+% mode: flyspell
+% End:
diff --git a/support/intex/latex/intex.log b/support/intex/latex/intex.log
new file mode 100644
index 0000000000..202b0182fb
--- /dev/null
+++ b/support/intex/latex/intex.log
@@ -0,0 +1,730 @@
+This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2012.5.3) 12 MAR 2013 12:00
+entering extended mode
+ %&-line parsing enabled.
+**intex.dtx
+(./intex.dtx
+LaTeX2e <2009/09/24>
+Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
+yphenation, bokmal, nynorsk, loaded.
+File: intex.dtx 2008/10/13 v1.1 A concept indexing and typesetting package
+(/usr/share/texmf-texlive/tex/latex/base/docstrip.tex
+\blockLevel=\count79
+\emptyLines=\count80
+\processedLines=\count81
+\commentsRemoved=\count82
+\commentsPassed=\count83
+\codeLinesPassed=\count84
+\TotalprocessedLines=\count85
+\TotalcommentsRemoved=\count86
+\TotalcommentsPassed=\count87
+\TotalcodeLinesPassed=\count88
+\NumberOfFiles=\count89
+\inFile=\read1
+\inputcheck=\read2
+\off@0=\count90
+\off@1=\count91
+\off@2=\count92
+\off@3=\count93
+\off@4=\count94
+\off@5=\count95
+\off@6=\count96
+\off@7=\count97
+\off@8=\count98
+\off@9=\count99
+\off@10=\count100
+\off@11=\count101
+\off@12=\count102
+\off@13=\count103
+\off@14=\count104
+\off@15=\count105
+\@maxfiles=\count106
+\@maxoutfiles=\count107
+
+Utility: `docstrip' 2.5d <2005/07/29>
+English documentation <1999/03/31>
+
+**********************************************************
+* This program converts documented macro-files into fast *
+* loadable files by stripping off (nearly) all comments! *
+**********************************************************
+
+********************************************************
+* No Configuration file found, using default settings. *
+********************************************************
+
+)
+
+Generating file(s) ./intex.sty
+\openout0 = `./intex.sty'.
+
+
+Processing file intex.dtx (intex) -> intex.sty
+Lines processed: 1519
+Comments removed: 1050
+Comments passed: 13
+Codelines passed: 446
+
+*************************************************************
+* *
+* To finish the installation you have to move the following *
+* file into a directory searched by TeX: *
+* *
+* intex.sty *
+* *
+* To produce the documentation run the file intex.dtx *
+* through LaTeX. *
+* *
+* Happy TeXing! *
+* *
+*************************************************************
+(/usr/share/texmf-texlive/tex/latex/base/ltxdoc.cls
+Document Class: ltxdoc 2007/11/11 v2.0u Standard LaTeX documentation class
+(/usr/share/texmf-texlive/tex/latex/base/article.cls
+Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
+(/usr/share/texmf-texlive/tex/latex/base/size10.clo
+File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
+)
+\c@part=\count108
+\c@section=\count109
+\c@subsection=\count110
+\c@subsubsection=\count111
+\c@paragraph=\count112
+\c@subparagraph=\count113
+\c@figure=\count114
+\c@table=\count115
+\abovecaptionskip=\skip41
+\belowcaptionskip=\skip42
+\bibindent=\dimen102
+)
+(/usr/share/texmf-texlive/tex/latex/base/doc.sty
+Package: doc 2006/02/02 v2.1d Standard LaTeX documentation package (FMi)
+\c@StandardModuleDepth=\count116
+\guard@level=\count117
+\MacrocodeTopsep=\skip43
+\MacroIndent=\dimen103
+\macro@cnt=\count118
+\MacroTopsep=\skip44
+\index@excludelist=\toks14
+
+(/usr/share/texmf-texlive/tex/latex/tools/multicol.sty
+Package: multicol 2008/12/05 v1.6h multicolumn formatting (FMi)
+\c@tracingmulticols=\count119
+\mult@box=\box26
+\multicol@leftmargin=\dimen104
+\c@unbalance=\count120
+\c@collectmore=\count121
+\doublecol@number=\count122
+\multicoltolerance=\count123
+\multicolpretolerance=\count124
+\full@width=\dimen105
+\page@free=\dimen106
+\premulticols=\dimen107
+\postmulticols=\dimen108
+\multicolsep=\skip45
+\multicolbaselineskip=\skip46
+\partial@page=\box27
+\last@line=\box28
+\mult@rightbox=\box29
+\mult@grightbox=\box30
+\mult@gfirstbox=\box31
+\mult@firstbox=\box32
+\@tempa=\box33
+\@tempa=\box34
+\@tempa=\box35
+\@tempa=\box36
+\@tempa=\box37
+\@tempa=\box38
+\@tempa=\box39
+\@tempa=\box40
+\@tempa=\box41
+\@tempa=\box42
+\@tempa=\box43
+\@tempa=\box44
+\@tempa=\box45
+\@tempa=\box46
+\@tempa=\box47
+\@tempa=\box48
+\@tempa=\box49
+\c@columnbadness=\count125
+\c@finalcolumnbadness=\count126
+\last@try=\dimen109
+\multicolovershoot=\dimen110
+\multicolundershoot=\dimen111
+\mult@nat@firstbox=\box50
+\colbreak@box=\box51
+)
+\IndexMin=\dimen112
+\c@IndexColumns=\count127
+\GlossaryMin=\dimen113
+\c@GlossaryColumns=\count128
+\check@sum=\count129
+\bslash@cnt=\count130
+\wrong@table=\toks15
+\c@CodelineNo=\count131
+)) (./intex.sty
+Package: intex 2008/10/13 v1.1 Support for concept, acronym, and proper-name ty
+pesetting and indexing
+
+(/home/mtr/texmf/tex/latex/index/index.sty
+Package: index 2004/01/20 v4.2beta Improved index support (dmj)
+\@indexbox=\insert233
+\indexproofstyle=\toks16
+)
+\idxtitle@default=\toks17
+\tf@default=\write3
+\openout3 = `intex.idx'.
+
+Package index Info: Writing index file intex.idx on input line 44.
+\idxtitle@raw=\toks18
+\tf@raw=\write4
+\openout4 = `intex.rix'.
+
+Package index Info: Writing index file intex.rix on input line 45.
+
+(/home/mtr/texmf/tex/latex/marginnote/marginnote.sty
+Package: marginnote 2009/02/26 v1.1c non floating margin notes for LaTeX
+\c@mn@abspage=\count132
+)
+(/home/mtr/texmf/tex/latex/acronym/acronym.sty
+Package: acronym 2008/05/28 v1.32 Support for acronyms (Tobias Oetiker)
+
+(/usr/share/texmf-texlive/tex/latex/bigfoot/suffix.sty
+Package: suffix 2006/07/15 1.5 Variant command support
+)
+\AC@clearlist=\toks19
+)
+(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty
+Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
+)
+\c@itxpl=\count133
+\c@co@serial=\count134
+\c@co@type=\count135
+Package InTeX Info: Adjusting behavior to suite the article document class.
+)
+(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
+Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
+
+(/usr/share/texmf-texlive/tex/latex/base/t1enc.def
+File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
+LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
+))
+(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
+Package: inputenc 2008/03/30 v1.1d Input encoding file
+\inpenc@prehook=\toks20
+\inpenc@posthook=\toks21
+
+(/usr/share/texmf-texlive/tex/latex/base/latin1.def
+File: latin1.def 2008/03/30 v1.1d Input encoding file
+))
+(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
+Package: babel 2008/07/06 v3.8l The Babel package
+
+(/usr/share/texmf-texlive/tex/generic/babel/norsk.ldf
+Language: norsk 2005/03/30 v2.0h Norsk support from the babel system
+
+(/usr/share/texmf-texlive/tex/generic/babel/babel.def
+File: babel.def 2008/07/06 v3.8l Babel common definitions
+\babel@savecnt=\count136
+\U@D=\dimen114
+)
+Package babel Info: Making " an active character on input line 113.
+)
+(/usr/share/texmf-texlive/tex/generic/babel/english.ldf
+Language: english 2005/03/30 v3.3o English support from the babel system
+\l@british = a dialect from \language\l@english
+\l@UKenglish = a dialect from \language\l@english
+\l@canadian = a dialect from \language\l@american
+\l@australian = a dialect from \language\l@british
+\l@newzealand = a dialect from \language\l@british
+))
+(/usr/share/texmf-texlive/tex/latex/fancyvrb/fancyvrb.sty
+Package: fancyvrb 2008/02/07
+
+Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
+<2008/02/07> (tvz) (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
+Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
+\KV@toks@=\toks22
+)
+\FV@CodeLineNo=\count137
+\FV@InFile=\read3
+\FV@TabBox=\box52
+\c@FancyVerbLine=\count138
+\FV@StepNumber=\count139
+\FV@OutFile=\write5
+)
+(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty
+\Urlmuskip=\muskip10
+Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
+)
+(/home/mtr/texmf/tex/latex/hyperref/hyperref.sty
+Package: hyperref 2008/09/27 v6.78k Hypertext links for LaTeX
+
+(/home/mtr/texmf/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
+Package ifpdf Info: pdfTeX in pdf mode detected.
+)
+(/home/mtr/texmf/tex/generic/oberdiek/ifvtex.sty
+Package: ifvtex 2007/09/09 v1.3 Switches for detecting VTeX and its modes (HO)
+Package ifvtex Info: VTeX not detected.
+)
+(/home/mtr/texmf/tex/generic/ifxetex/ifxetex.sty
+Package: ifxetex 2008/09/18 v0.4 Provides ifxetex conditional
+)
+(/home/mtr/texmf/tex/latex/oberdiek/hycolor.sty
+Package: hycolor 2007/04/11 v1.1 Code for color options of hyperref/bookmark (H
+O)
+)
+\@linkdim=\dimen115
+\Hy@linkcounter=\count140
+\Hy@pagecounter=\count141
+
+(/home/mtr/texmf/tex/latex/hyperref/pd1enc.def
+File: pd1enc.def 2008/09/27 v6.78k Hyperref: PDFDocEncoding definition (HO)
+)
+(/home/mtr/texmf/tex/generic/oberdiek/etexcmds.sty
+Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
+
+(/home/mtr/texmf/tex/generic/oberdiek/infwarerr.sty
+Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
+)
+Package etexcmds Info: Could not find \expanded.
+(etexcmds) That can mean that you are not using pdfTeX 1.50 or
+(etexcmds) that some package has redefined \expanded.
+(etexcmds) In the latter case, load this package earlier.
+)
+(/usr/share/texmf-texlive/tex/latex/latexconfig/hyperref.cfg
+File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
+)
+(/home/mtr/texmf/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
+)
+Package hyperref Info: Option `colorlinks' set `true' on input line 2782.
+Package hyperref Info: Hyper figures OFF on input line 2893.
+Package hyperref Info: Link nesting OFF on input line 2898.
+Package hyperref Info: Hyper index ON on input line 2901.
+Package hyperref Info: Plain pages OFF on input line 2908.
+Package hyperref Info: Backreferencing OFF on input line 2913.
+
+Implicit mode ON; LaTeX internals redefined
+Package hyperref Info: Bookmarks ON on input line 3103.
+LaTeX Info: Redefining \url on input line 3337.
+(/home/mtr/texmf/tex/generic/oberdiek/bitset.sty
+Package: bitset 2007/09/28 v1.0 Data type bit set (HO)
+
+(/home/mtr/texmf/tex/generic/oberdiek/intcalc.sty
+Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
+)
+(/home/mtr/texmf/tex/generic/oberdiek/bigintcalc.sty
+Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations (HO)
+
+(/home/mtr/texmf/tex/generic/oberdiek/pdftexcmds.sty
+Package: pdftexcmds 2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions
+ (HO)
+Package pdftexcmds Info: LuaTeX not detected on input line 139.
+)))
+(/home/mtr/texmf/tex/generic/oberdiek/kvsetkeys.sty
+Package: kvsetkeys 2007/09/29 v1.3 Key value parser with default handler suppor
+t (HO)
+)
+\Fld@menulength=\count142
+\Field@Width=\dimen116
+\Fld@charsize=\dimen117
+\Field@toks=\toks23
+Package hyperref Info: Hyper figures OFF on input line 4254.
+Package hyperref Info: Link nesting OFF on input line 4259.
+Package hyperref Info: Hyper index ON on input line 4262.
+Package hyperref Info: backreferencing OFF on input line 4269.
+Package hyperref Info: Link coloring ON on input line 4272.
+Package hyperref Info: Link coloring with OCG OFF on input line 4279.
+Package hyperref Info: PDF/A mode OFF on input line 4284.
+
+(/home/mtr/texmf/tex/generic/oberdiek/atbegshi.sty
+Package: atbegshi 2007/09/09 v1.6 At begin shipout hook (HO)
+)
+\Hy@abspage=\count143
+\c@Item=\count144
+\c@Hfootnote=\count145
+)
+*hyperref using default driver hpdftex*
+(/home/mtr/texmf/tex/latex/hyperref/hpdftex.def
+File: hpdftex.def 2008/09/27 v6.78k Hyperref driver for pdfTeX
+\Fld@listcount=\count146
+)
+(/home/mtr/texmf/tex/latex/svn/svn.sty
+Package: svn 2003/09/21 r32 Typeset Subversion keywords.
+)
+(/usr/share/texmf-texlive/tex/latex/booktabs/booktabs.sty
+Package: booktabs 2005/04/14 v1.61803 publication quality tables
+\heavyrulewidth=\dimen118
+\lightrulewidth=\dimen119
+\cmidrulewidth=\dimen120
+\belowrulesep=\dimen121
+\belowbottomsep=\dimen122
+\aboverulesep=\dimen123
+\abovetopsep=\dimen124
+\cmidrulesep=\dimen125
+\cmidrulekern=\dimen126
+\defaultaddspace=\dimen127
+\@cmidla=\count147
+\@cmidlb=\count148
+\@aboverulesep=\dimen128
+\@belowrulesep=\dimen129
+\@thisruleclass=\count149
+\@lastruleclass=\count150
+\@thisrulewidth=\dimen130
+)
+\@glossaryfile=\write6
+\openout6 = `intex.glo'.
+
+
+Writing glossary file intex.glo
+(./intex.aux)
+\openout1 = `intex.aux'.
+
+LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 102.
+LaTeX Font Info: ... okay on input line 102.
+Package doc Info: Made | a short reference for \verb on input line 102.
+Package marginnote Info: \pdfoutput not 0 and \pdflastxpos available.
+(marginnote) Extended position detection mode activated.
+ (./intex.ito)
+(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
+Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
+
+(/etc/texmf/tex/latex/config/color.cfg
+File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
+)
+Package color Info: Driver file: pdftex.def on input line 130.
+
+(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def
+File: pdftex.def 2010/03/12 v0.04p Graphics/color for pdfTeX
+\Gread@gobject=\count151
+
+(/usr/share/texmf-texlive/tex/context/base/supp-pdf.mkii
+[Loading MPS to PDF converter (version 2006.09.02).]
+\scratchcounter=\count152
+\scratchdimen=\dimen131
+\scratchbox=\box53
+\nofMPsegments=\count153
+\nofMParguments=\count154
+\everyMPshowfont=\toks24
+\MPscratchCnt=\count155
+\MPscratchDim=\dimen132
+\MPnumerator=\count156
+\everyMPtoPDFconversion=\toks25
+)))
+Package hyperref Info: Link coloring ON on input line 102.
+ (/home/mtr/texmf/tex/latex/hyperref/nameref.sty
+Package: nameref 2007/05/29 v2.31 Cross-referencing by name of section
+
+(/home/mtr/texmf/tex/latex/oberdiek/refcount.sty
+Package: refcount 2006/02/20 v3.0 Data extraction from references (HO)
+)
+\c@section@level=\count157
+)
+LaTeX Info: Redefining \ref on input line 102.
+LaTeX Info: Redefining \pageref on input line 102.
+ (./intex.out) (./intex.out)
+\@outlinefile=\write7
+\openout7 = `intex.out'.
+
+\AtBeginShipoutBox=\box54
+
+(./intex.dtx
+***************************
+* Character table correct *
+***************************
+LaTeX Font Info: Try loading font information for T1+cmss on input line 245.
+
+(/usr/share/texmf-texlive/tex/latex/base/t1cmss.fd
+File: t1cmss.fd 1999/05/25 v2.5h Standard LaTeX font definitions
+)
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <17.28> on input line 245.
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <12> on input line 245.
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <8> on input line 245.
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <6> on input line 245.
+LaTeX Font Info: Try loading font information for T1+cmtt on input line 245.
+
+
+(/usr/share/texmf-texlive/tex/latex/base/t1cmtt.fd
+File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
+)
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <5> on input line 245.
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <7> on input line 247.
+
+
+LaTeX Warning: Marginpar on page 1 moved.
+
+[1
+
+{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
+
+LaTeX Warning: Marginpar on page 2 moved.
+
+
+LaTeX Warning: Marginpar on page 2 moved.
+
+
+LaTeX Warning: Marginpar on page 2 moved.
+
+
+LaTeX Warning: Marginpar on page 2 moved.
+
+
+LaTeX Warning: Marginpar on page 2 moved.
+
+\openout5 = `intex.tmp'.
+
+(./intex.tmp)
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 328--329
+$[]$ $[]$
+ []
+
+\openout5 = `intex.tmp'.
+
+(./intex.tmp
+Underfull \hbox (badness 10000) in paragraph at lines 4--8
+
+ []
+
+)
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 348--349
+[]$[]$ $[]$
+ []
+
+[2]
+\openout5 = `intex.tmp'.
+
+ (./intex.tmp)
+Underfull \hbox (badness 10000) in paragraph at lines 4--358
+[]\T1/cmr/m/n/10 The \T1/cmr/m/sl/10 In\T1/cmr/m/n/10 T[]X pack-age also
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 4--358
+\T1/cmr/m/it/10 Se-man-tic In-for-ma-tion for
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 4--358
+\T1/cmr/m/it/10 Mul-ti-func-tional Plurilin-gual
+ []
+
+
+Underfull \hbox (badness 2846) in paragraph at lines 4--358
+\T1/cmr/m/it/10 Lex-ica (Swedish SIM-PLE)\T1/cmr/m/n/10 ,
+ []
+
+
+Underfull \hbox (badness 4266) in paragraph at lines 4--358
+\T1/cmr/m/it/10 In-for-ma-tion for Mul-ti-func-
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 4--358
+\T1/cmr/m/it/10 tional Plurilin-gual Lex-ica
+ []
+
+
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 358--359
+[]$[]$ $[]$
+ []
+
+
+LaTeX Warning: Marginpar on page 3 moved.
+
+
+LaTeX Warning: Marginpar on page 3 moved.
+
+
+LaTeX Warning: Marginpar on page 3 moved.
+
+\openout5 = `intex.tmp'.
+
+(./intex.tmp)
+Underfull \hbox (badness 5064) in paragraph at lines 1--377
+\T1/cmr/m/it/10 m$[]$a$[]$ eater\T1/cmr/m/n/10 . There are
+ []
+
+
+Underfull \hbox (badness 1107) in paragraph at lines 1--377
+\T1/cmr/m/it/10 eaters \T1/cmr/m/n/10 in the an-i-mal king-
+ []
+
+
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 377--381
+[]$[]$ $[]$
+ []
+
+\openout5 = `intex.tmp'.
+
+(./intex.tmp)
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 393--397
+[]$[]$ $[]$
+ []
+
+[3]
+\openout5 = `intex.tmp'.
+
+ (./intex.tmp)
+Underfull \hbox (badness 6284) in paragraph at lines 1--412
+[][]\T1/cmtt/m/n/10 mkintex \T1/cmr/m/n/10 au-to-mat-i-cally in-
+ []
+
+
+Overfull \hbox (2.22168pt too wide) in paragraph at lines 412--416
+[]$[]$ $[]$
+ []
+
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <9> on input line 442.
+[4] [5]
+Overfull \hbox (46.50687pt too wide) in paragraph at lines 453--454
+[][]\T1/cmtt/m/n/10 mkintex $\OMS/cmsy/m/n/10 h$[]\T1/cmr/m/it/10 name$\OMS/cms
+y/m/n/10 i$ $h$\T1/cmr/m/it/10 name$\OMS/cmsy/m/n/10 i$[][]\T1/cmtt/m/n/10 .itx
+ -o $\OMS/cmsy/m/n/10 h$[]\T1/cmr/m/it/10 name$\OMS/cmsy/m/n/10 i$[][]\T1/cmtt/
+m/n/10 .rix [-a acronyms.tex -p persons.tex]
+ []
+
+
+LaTeX Warning: Marginpar on page 6 moved.
+
+[6] [7]
+
+Package hyperref Warning: Token not allowed in a PDFDocEncoded string:
+(hyperref) \kern -0.69989pt
+(hyperref) removed on input line 587.
+
+[8] [9] [10] [11] [12]
+Overfull \hbox (0.5075pt too wide) in paragraph at lines 999--999
+ [][] \T1/cmtt/m/n/9 %\PackageWarning{InTeX}{Current position for type "#1" is
+ "\curr@pos"}%
+ []
+
+[13] [14] [15]
+LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <10> not available
+(Font) Font shape `T1/cmtt/m/n' tried instead on input line 1159.
+
+Overfull \hbox (24.12674pt too wide) in paragraph at lines 1193--1193
+ [][]\T1/cmtt/m/n/9 % Define the identity of the equivalent entry. Get the i
+dentity of the main
+ []
+
+[16] [17]
+Overfull \hbox (9.9552pt too wide) in paragraph at lines 1299--1299
+ [][] \T1/cmtt/m/n/9 \expandafter\ifx\csname fn\number\theco@type e@\@tempb\
+endcsname\relax%
+ []
+
+
+Overfull \hbox (14.67905pt too wide) in paragraph at lines 1299--1299
+ [][] \T1/cmtt/m/n/9 \expandafter\ifx\csname fn\number\theco@type @\@tempb
+\endcsname\relax%
+ []
+
+
+Overfull \hbox (0.5075pt too wide) in paragraph at lines 1311--1311
+ [][] \T1/cmtt/m/n/9 % \PackageWarning{InTeX}{Main AND alias reference `
+#2' occurred}%
+ []
+
+[18]
+Overfull \hbox (19.4029pt too wide) in paragraph at lines 1403--1403
+ [][] \T1/cmtt/m/n/9 %\PackageWarning{init}{Def: \meaning\csname fn\number#1@\
+@tempb\endcsname}%
+ []
+
+[19]
+Overfull \hbox (5.67596pt too wide) detected at line 1438
+[]\OMS/cmsy/m/n/10 h[]i[]h[]i[]h[]i[]h[]i[]h[]i[]\OML/cmm/m/it/10 ;
+ []
+
+
+Overfull \hbox (22.9303pt too wide) in paragraph at lines 1447--1450
+[]\T1/cmr/m/n/10 Note that the macros []\T1/cmtt/m/n/10 \new$\OMS/cmsy/m/n/10 h
+$[]\T1/cmr/m/it/10 type$\OMS/cmsy/m/n/10 i$[][]\T1/cmtt/m/n/10 equiv\T1/cmr/m/n
+/10 , where $\OMS/cmsy/m/n/10 h$[]\T1/cmr/m/it/10 type$\OMS/cmsy/m/n/10 i$ $2 f
+[]\OML/cmm/m/it/10 ; []; []\OMS/cmsy/m/n/10 g$[]\T1/cmr/m/n/10 ,
+ []
+
+
+Overfull \hbox (14.67905pt too wide) in paragraph at lines 1465--1465
+ [][] \T1/cmtt/m/n/9 %\PackageWarning{init}{Found `\@tempb' (type=\number#1,
+ serial=\co@id)}%
+ []
+
+[20]
+
+Package hyperref Warning: Token not allowed in a PDFDocEncoded string:
+(hyperref) \kern -0.69989pt
+(hyperref) removed on input line 1507.
+
+(./intex.rid [21]
+Overfull \hbox (1.00923pt too wide) in paragraph at lines 51--53
+\T1/cmr/m/it/10 for Mul-ti-func-tional Plurilin-
+ []
+
+[22
+
+
+])
+**********************************
+* This macro file has no checksum!
+* The checksum should be 667!
+**********************************
+) (./intex.aux) )
+Here is how much of TeX's memory you used:
+ 6709 strings out of 494937
+ 91551 string characters out of 1180324
+ 162698 words of memory out of 3000000
+ 9708 multiletter control sequences out of 15000+50000
+ 25752 words of font info for 54 fonts, out of 3000000 for 9000
+ 118 hyphenation exceptions out of 8191
+ 36i,8n,38p,276b,691s stack positions out of 5000i,500n,10000p,200000b,50000s
+{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}</u
+sr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/te
+xmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf-texlive/
+fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texmf-texlive/fonts/type1/p
+ublic/amsfonts/cm/cmsy10.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfo
+nts/cm/cmsy5.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsy6
+.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbl1200.pfb></usr/share/tex
+mf/fonts/type1/public/cm-super/sfbx1000.pfb></usr/share/texmf/fonts/type1/publi
+c/cm-super/sfbx1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.
+pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm0500.pfb></usr/share/texm
+f/fonts/type1/public/cm-super/sfrm0600.pfb></usr/share/texmf/fonts/type1/public
+/cm-super/sfrm0700.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm0800.p
+fb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf
+/fonts/type1/public/cm-super/sfrm1200.pfb></usr/share/texmf/fonts/type1/public/
+cm-super/sfrm1728.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfsi0800.pf
+b></usr/share/texmf/fonts/type1/public/cm-super/sfsi1000.pfb></usr/share/texmf/
+fonts/type1/public/cm-super/sfsi1728.pfb></usr/share/texmf/fonts/type1/public/c
+m-super/sfsl1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss0800.pfb
+></usr/share/texmf/fonts/type1/public/cm-super/sfss1000.pfb></usr/share/texmf/f
+onts/type1/public/cm-super/sfss1728.pfb></usr/share/texmf/fonts/type1/public/cm
+-super/sfti1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sftt0800.pfb>
+</usr/share/texmf/fonts/type1/public/cm-super/sftt0900.pfb></usr/share/texmf/fo
+nts/type1/public/cm-super/sftt1000.pfb></usr/share/texmf/fonts/type1/public/cm-
+super/sftt1200.pfb>
+Output written on intex.pdf (22 pages, 528600 bytes).
+PDF statistics:
+ 337 PDF objects out of 1000 (max. 8388607)
+ 48 named destinations out of 1000 (max. 500000)
+ 141 words of extra memory for PDF output out of 10000 (max. 10000000)
+
diff --git a/support/intex/latex/intex.out b/support/intex/latex/intex.out
new file mode 100644
index 0000000000..02ac6d0cbd
--- /dev/null
+++ b/support/intex/latex/intex.out
@@ -0,0 +1,16 @@
+\BOOKMARK [1][-]{section.1}{Introduction}{}
+\BOOKMARK [1][-]{section.2}{Background}{}
+\BOOKMARK [1][-]{section.3}{Usage}{}
+\BOOKMARK [2][-]{subsection.3.1}{Package Options}{section.3}
+\BOOKMARK [2][-]{subsection.3.2}{Examples}{section.3}
+\BOOKMARK [3][-]{subsubsection.3.2.1}{Index Definitions}{subsection.3.2}
+\BOOKMARK [2][-]{subsection.3.3}{Compilation}{section.3}
+\BOOKMARK [1][-]{section.4}{Macros}{}
+\BOOKMARK [1][-]{section.5}{Implementation}{}
+\BOOKMARK [2][-]{subsection.5.1}{Package Options}{section.5}
+\BOOKMARK [2][-]{subsection.5.2}{External Packages}{section.5}
+\BOOKMARK [2][-]{subsection.5.3}{The InTeX Logo}{section.5}
+\BOOKMARK [2][-]{subsection.5.4}{Font Definitions}{section.5}
+\BOOKMARK [2][-]{subsection.5.5}{The \(Low-Level\) Clockwork of the Package}{section.5}
+\BOOKMARK [3][-]{subsubsection.5.5.1}{Typesetting of Margin Labels}{subsection.5.5}
+\BOOKMARK [2][-]{subsection.5.6}{The Internal InTeX File}{section.5}
diff --git a/support/intex/latex/intex.pdf b/support/intex/latex/intex.pdf
new file mode 100644
index 0000000000..f887fa7e56
--- /dev/null
+++ b/support/intex/latex/intex.pdf
Binary files differ
diff --git a/support/intex/latex/intex.rid b/support/intex/latex/intex.rid
new file mode 100644
index 0000000000..d722587a3d
--- /dev/null
+++ b/support/intex/latex/intex.rid
@@ -0,0 +1,64 @@
+\begin{theindex}
+
+ \item \textit{Bokmålsordboka}, \hyperpage{3}
+
+ \indexspace
+
+ \item carnivore, \hyperpage{3}
+ \subitem canine, \hyperpage{3}
+ \subitem feline, \hyperpage{3}
+ \item com\-pound, \hyperpage{3}
+ \subitem ---word analyzer, \hyperpage{3}
+ \subitem non-deverbal verb --, \hyperpage{3}
+ \subitem Norwegian ---word analysis, \hyperpage{3}
+ \item concept, \hyperpage{2}, \hyperpage{6}
+ \subitem acronym --, \hyperpage{2}
+ \subitem person --, \hyperpage{2}
+ \subitem plain --, \hyperpage{2}
+ \subitem sub---, \hyperpage{2}
+
+ \indexspace
+
+ \item dihydrogen monoxide, \hyperpage{2, 3}
+ \subitem -- reserve, \hyperpage{2}
+
+ \indexspace
+
+ \item H$_{2}$O, \see{dihydrogen monoxide}{0}
+ \subitem -- reserve, \see{---, -- reserve}{0}
+
+ \indexspace
+
+ \item ID, \see{identity}{0}
+ \item identity, \hyperpage{3}
+ \item index, \hyperpage{4}
+ \item {\InTeX\ logo}, \hyperpage{6}
+
+ \indexspace
+
+ \item m$^{\textrm{e}}$a$_{\textrm{t}}$ eater, \see{carnivore}{0}
+
+ \indexspace
+
+ \item Presley, Elvis~Aaron, \hyperpage{4}
+ \item Python, \hyperpage{2}
+
+ \indexspace
+
+ \item \textit{Semantic Information for Multifunctional Plurilingual Lexica},
+ \hyperpage{3}
+ \subitem \textit{Swedish --}, \hyperpage{3}
+ \item SIMPLE,
+ \see{\textit{Semantic Information for Multifunctional Plurilingual Lexica}}{0}
+ \subitem Swedish --, \see{---, \textit{Swedish --}}{0}
+ \item dog \textit{(explicitly sorted)}, \hyperpage{4}
+
+ \indexspace
+
+ \item vertex, \hyperpage{4}
+
+ \indexspace
+
+ \item water, \see{dihydrogen monoxide}{0}
+
+\end{theindex}
diff --git a/support/intex/latex/intex.rix b/support/intex/latex/intex.rix
new file mode 100644
index 0000000000..6777de3b4d
--- /dev/null
+++ b/support/intex/latex/intex.rix
@@ -0,0 +1,46 @@
+\indexentry {Python|hyperpage}{2}
+\indexentry {concept|hyperpage}{2}
+\indexentry {concept|hyperpage}{2}
+\indexentry {acronym|hyperpage}{2}
+\indexentry {person concept|hyperpage}{2}
+\indexentry {concepts|hyperpage}{2}
+\indexentry {acronym concepts|hyperpage}{2}
+\indexentry {person concepts|hyperpage}{2}
+\indexentry {plain concepts|hyperpage}{2}
+\indexentry {concept|hyperpage}{2}
+\indexentry {plain|hyperpage}{2}
+\indexentry {plain|hyperpage}{2}
+\indexentry {sub-concepts|hyperpage}{2}
+\indexentry {H2O|hyperpage}{2}
+\indexentry {H2O reserve|hyperpage}{2}
+\indexentry {Python|hyperpage}{2}
+\indexentry {IDs|hyperpage}{3}
+\indexentry {ID|hyperpage}{3}
+\indexentry {ID|hyperpage}{3}
+\indexentry {ID|hyperpage}{3}
+\indexentry {ID|hyperpage}{3}
+\indexentry {Swedish SIMPLE|hyperpage}{3}
+\indexentry {SIMPLE|hyperpage}{3}
+\indexentry {compound-word analyzer|hyperpage}{3}
+\indexentry {compound-word analyzer|hyperpage}{3}
+\indexentry {Norwegian compound-word analysis|hyperpage}{3}
+\indexentry {non-deverbal verb compounds|hyperpage}{3}
+\indexentry {Bokmålsordboka|hyperpage}{3}
+\indexentry {compounds|hyperpage}{3}
+\indexentry {carnivore|hyperpage}{3}
+\indexentry {meat eater|hyperpage}{3}
+\indexentry {feline|hyperpage}{3}
+\indexentry {canine|hyperpage}{3}
+\indexentry {meat eaters|hyperpage}{3}
+\indexentry {water|hyperpage}{3}
+\indexentry {Carnivore|hyperpage}{3}
+\indexentry {index|hyperpage}{4}
+\indexentry {indices|hyperpage}{4}
+\indexentry {vertex|hyperpage}{4}
+\indexentry {vertices|hyperpage}{4}
+\indexentry {dog|hyperpage}{4}
+\indexentry {dogs|hyperpage}{4}
+\indexentry {EAPK|hyperpage}{4}
+\indexentry {EAP|hyperpage}{4}
+\indexentry {concept|hyperpage}{6}
+\indexentry {InTeX logo|hyperpage}{6}
diff --git a/support/intex/latex/intex.sty b/support/intex/latex/intex.sty
new file mode 100644
index 0000000000..c6d8f48059
--- /dev/null
+++ b/support/intex/latex/intex.sty
@@ -0,0 +1,407 @@
+%%
+%% This is file `intex.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% intex.dtx (with options: `intex')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2005--2008 by Martin Thorsen Ranang <mtr@ranang.org>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.2 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX version
+%% 1999/12/01 or later.
+%%
+\def\filename{intex}%
+\ProvidesPackage{intex}[2008/10/13 v1.1
+Support for concept, acronym, and proper-name typesetting and indexing]%
+\newif\if@itx@index%
+\@itx@indextrue%
+\DeclareOption{noindex}{\@itx@indexfalse}%
+\newif\if@itx@warn@undef%
+\@itx@warn@undeftrue%
+\DeclareOption{nowarnundef}{\@itx@warn@undeffalse}%
+\newif\if@itx@margin@plain%
+\newif\if@itx@margin@acronym%
+\newif\if@itx@margin@person%
+\@itx@margin@plaintrue%
+\@itx@margin@acronymtrue%
+\@itx@margin@persontrue%
+\DeclareOption{nomarginplain}{\@itx@margin@plainfalse}%
+\DeclareOption{nomarginacronym}{\@itx@margin@acronymfalse}%
+\DeclareOption{nomarginperson}{\@itx@margin@personfalse}%
+\ProcessOptions%
+\if@itx@index%
+ \RequirePackage{index}%
+ \makeindex%
+ \newindex{raw}{rix}{rid}{Index}%
+\else%
+ \def\@nearverbatim{\expandafter\strip@prefix\meaning}%
+\fi%
+\if@itx@margin@plain%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+\if@itx@margin@acronym%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+\if@itx@margin@person%
+ \RequirePackage{marginnote}[2006/10/26]%
+\fi%
+\RequirePackage{acronym}[2008/05/28]%
+\RequirePackage{ifthen}%
+\newcommand*{\InTeX}{\textsl{In}\kern-.07em\TeX}%
+\newcommand\itxplaindeffont[1]{\emph{#1}}%
+\newcommand\itxplainfollowfont[1]{#1}%
+\newcounter{itxpl}%
+\newcommand\@itxbasemarginfont[1]{%
+ \stepcounter{itxpl}%
+ \ifthenelse{\isodd{\pageref{itxpl-\theitxpl}}}{%
+ \raggedright\hspace{0pt}\footnotesize\textsf{#1}% odd
+ }{%
+ \raggedleft\hspace{0pt}\footnotesize\textsf{#1}% even
+ }%
+ \label{itxpl-\theitxpl}%
+}%
+\newcommand\itxplainmarginfont[1]{%
+ \@itxbasemarginfont{#1}%
+}%
+\newcommand{\itxacronymdeffont}[1]{#1}%
+\newcommand{\itxacronymdefshortfont}[1]{\emph{#1}}%
+\newcommand{\itxacronymshortfont}[1]{#1}%
+\newcommand{\itxacronymmarginfont}[1]{%
+ \@itxbasemarginfont{#1}%
+ %\raggedleft\hspace{0pt}\footnotesize\textsf{#1}%
+}%
+\newcommand{\itxpersondeffont}[1]{\emph{#1}}%
+\newcommand{\itxpersonfirstfont}[1]{#1}%
+\newcommand{\itxpersonlastfont}[1]{#1}%
+\newcommand{\itxpersonmarginfont}[1]{%
+ \@itxbasemarginfont{#1}%
+ %\raggedleft\hspace{0pt}\footnotesize\textsf{#1}%
+}%
+\newcounter{co@serial}%
+\newcounter{co@type}%
+\newcommand*\itxundefcomment[1]{\emph{(undefined concept ``#1'')}}%
+\long\def\@firstofthree#1#2#3{#1}%
+\long\def\@secondofthree#1#2#3{#2}%
+\def\ITX@reset#1{%
+ \global\expandafter\let\csname itx@#1\endcsname\relax}%
+\newcommand*\@itxmarginlabel[2]{%
+ \hspace{0pt}%
+ \ifcase#1%
+ % \ldots plain concept, \ldots
+ \if@itx@margin@plain%
+ \marginpar{\itxplainmarginfont{\ITX@itxs{#1}{#2}}}%
+ %\marginnote{\itxplainmarginfont{\ITX@itxs{#1}{#2}}}%
+ \fi%
+ \or%
+ % \ldots an acronym, \ldots
+ \if@itx@margin@acronym%
+ \marginpar{\itxacronymmarginfont{\ITX@itxs{#1}{#2}}}%
+ \fi%
+ \or%
+ % \ldots or a person's name.
+ \if@itx@margin@person%
+ \marginpar{\itxpersonmarginfont{\ITX@itxl{#1}{#2}}}%
+ \fi%
+ \fi%
+}%
+\newcommand*\ITX@used{@<>@<>@}%
+\newcommand*\ITX@get[2]{%
+ \ifx#1\relax%
+ \else%
+ \expandafter#2#1%
+ \fi%
+}%
+\newcommand*\itxplainarea{\thesubparagraph:\thepage}%
+\newcommand*\itxacronymarea{\thechapter}%
+\newcommand*\itxpersonarea{\thesubsubsection}%
+\newcommand*\@itxarea[1]{%
+ \ifcase#1%
+ {\itxplainarea}%
+ \or%
+ {\itxacronymarea}%
+ \or%
+ {\itxpersonarea}%
+ \fi%
+}%
+\def\itx@last@pos0{}%
+\def\itx@last@pos1{}%
+\def\itx@last@pos2{}%
+\newcommand*\ITX@itxs[2]{%
+ \csname fnss@\number#2\endcsname%
+}%
+\newcommand*\ITX@itxl[2]{%
+ \csname fnsl@\number#2\endcsname%
+}%
+\newcommand*{\itxs}[2]{%
+ \texorpdfstring{\protect\@itxs{#1}{#2}}{#1}}%
+\newcommand*{\@itxs}[2]{%
+ \ifcase\number#1%
+ \itxplainfollowfont{\ITX@itxs{#1}{#2}}%
+ \or%
+ \itxacronymshortfont{\ITX@itxs{#1}{#2}}%
+ \or%
+ \itxpersonlastfont{\ITX@itxl{#1}{#2}}%
+ \fi%
+}%
+\newcommand*{\itxl}{\protect\@itxl}%
+\newcommand*{\@itxl}[2]{%
+ %\ITX@itxl{#1}{#2}%
+ \ifcase\number#1%
+ \itxplainfollowfont{\ITX@itxs{#1}{#2}}\nolinebreak %
+ \or%
+ \itxacronymdeffont{\ITX@itxl{#1}{#2}}%
+ \or%
+ \itxpersondeffont{%
+ \itxpersonfirstfont{\ITX@itxs{#1}{#2}} %
+ %\nolinebreak[3] %
+ \itxpersonlastfont{\ITX@itxl{#1}{#2}}%
+ }%
+ \fi%
+}%
+\newcommand*{\itxf}[2]{%
+ \texorpdfstring{\protect\@itxf{#1}{#2}}{\ITX@itxl{#1}{#2} (#1)}%
+}%
+\newcommand*{\@itxf}[2]{%
+ \ifcase\number#1%
+ \@itxmarginlabel{#1}{#2}%
+ \itxplaindeffont{\ITX@itxs{#1}{#2}}\nolinebreak %
+ \or%
+ \itxacronymdeffont{%
+ \ITX@itxl{#1}{#2} %
+ %\nolinebreak[3] %
+ \@itxmarginlabel{#1}{#2}%
+ \itxacronymdefshortfont{%
+ \itxacronymshortfont{(\ITX@itxs{#1}{#2})}}%
+ }%
+ \or%
+ \itxpersondeffont{%
+ \itxpersonfirstfont{%
+ \ITX@itxs{#1}{#2}} %
+ %\nolinebreak[3] %
+ \@itxmarginlabel{#1}{#2}%
+ \itxpersonlastfont{%
+ \ITX@itxl{#1}{#2}%
+ }%
+ }%
+ \fi%
+ \expandafter\ifx\csname itx@#2\endcsname\ITX@used%
+ %\relax%
+ \else%
+ \global\expandafter\let\csname itx@#2\endcsname\ITX@used%
+ %\ITX@addtoclearlist{#2}% MTR
+ \fi%
+ %\ITX@logged{#2} MTR
+}%
+\newcommand*{\@itxrecordarea}[2]{%
+ % Record this area:
+ \edef\curr@pos{\@itxarea{#1}}%
+ %\PackageWarning{InTeX}{Current position for type "#1" is "\curr@pos"}%
+ % Remember the last area where this concept (second argument) was used.
+ \edef\last@pos{\csname itx@last@pos#1@#2\endcsname}%
+ \ifx\curr@pos\last@pos%
+ % We're still in the same area. Hence, we do nothing.
+ \else%
+ % The area has changed.
+ \ITX@reset{#2}%
+ \fi%
+ \expandafter\xdef\csname itx@last@pos#1@#2\endcsname{\curr@pos}%
+}%
+\newcommand\@itx@init@nonbookmode{%
+ \newcommand*{\@itxtypeset}[3]{% Article-mode.
+ \ifx##3A%
+ %\PackageWarning{InTeX}{Typesetting format is automatic}%
+ \expandafter\ifx\csname itx@##2\endcsname\ITX@used%
+ \itxs{##1}{##2}%
+ \else%
+ \itxf{##1}{##2}%
+ \fi%
+ \else%
+ %\PackageWarning{InTeX}{Typesetting format = "##3"}%
+ \ifx##3S\itxs{##1}{##2}\fi%
+ \ifx##3L\itxl{##1}{##2}\fi%
+ \ifx##3F\itxf{##1}{##2}\fi%
+ \fi%
+ }%
+}%
+\newcommand\@itx@init@bookmode{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite book/report document
+ classes\@gobble}%
+ \newcommand*{\@itxtypeset}[3]{% Book/report-mode.
+ \ifx##3A%
+ %\PackageWarning{InTeX}{Typesetting format is automatic}%
+ \if@mainmatter%
+ \expandafter\ifx\csname itx@##2\endcsname\ITX@used%
+ \itxs{##1}{##2}%
+ \else%
+ \itxf{##1}{##2}%
+ \fi%
+ \else%
+ \itxl{##1}{##2}%
+ \fi%
+ \else%
+ %\PackageWarning{InTeX}{Typesetting format = "##3"}%
+ \ifx##3S\itxs{##1}{##2}\fi%
+ \ifx##3L\itxl{##1}{##2}\fi%
+ \ifx##3F\itxf{##1}{##2}\fi%
+ \fi%
+ }%
+}
+\newif\if@itx@bookmode%
+\@itx@bookmodetrue%
+\@ifclassloaded{article}{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite the article document
+ class\@gobble}%
+ \@itx@init@nonbookmode%
+ \@itx@bookmodefalse%
+}{}%
+\@ifclassloaded{beamer}{%
+ \PackageInfo{InTeX}{Adjusting behavior to suite the beamer document
+ class\@gobble}%
+ \@itx@init@nonbookmode%
+ \@itx@bookmodefalse%
+ \renewcommand*\itxacronymarea{0}%
+ \@itx@margin@plainfalse%
+ \@itx@margin@acronymfalse%
+ \@itx@margin@personfalse%
+}{}%
+\if@itx@bookmode%
+ \@itx@init@bookmode%
+\fi%
+\newcommand*{\@itxplain}[3]{%
+ \@itxrecordarea{#1}{#2}%
+ \@itxtypeset{#1}{#2}{#3}%
+}%
+\newcommand*{\@itxalias}[2]{%
+ \edef\@mainserial{\expandafter\@firstoftwo#2}%
+ \edef\@equivserial{\expandafter\@secondoftwo#2}%
+ %\@itxrecordarea{#1}{\@mainserial}%
+ \@itxplain{#1}{\@equivserial}%
+}%
+\newcommand{\@itx@fakeindex}[1]{%
+ \begingroup%
+ \edef\@tempa{%
+ \write\@auxout{%
+ \string\@writefile{raw}{%
+ \string\indexentry{#1}{\thepage}%
+ }%
+ }%
+ }%
+ \expandafter\endgroup\@tempa%
+}%
+\newcommand{\co}{\@itx}%
+\newcommand{\coS}[1]{\@itx[S]{#1}}%
+\newcommand{\coL}[1]{\@itx[L]{#1}}%
+\newcommand{\coF}[1]{\@itx[F]{#1}}%
+\DeclareRobustCommand*{\@itx}[2][A]{%
+ \def\@tempa{#2}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ \if@itx@index%
+ \index[raw]{#2}%
+ \else%
+ \@itx@fakeindex{\@tempb}%
+ \fi%
+ \newif\iffound%
+ \setcounter{co@type}{0}%
+ \loop\ifnum\theco@type<3%
+ \expandafter\ifx\csname fn\number\theco@type e@\@tempb\endcsname\relax%
+ \expandafter\ifx\csname fn\number\theco@type @\@tempb\endcsname\relax%
+ % \PackageWarning{InTeX}{Main AND alias reference `#2' occurred}%
+ % The reference refers to both main _and_ alias entries. Do
+ % nothing, this will be resolved through the |else|-cases
+ % immediately below.
+ \else%
+ %\PackageInfo{InTeX}{Main reference `#2' occurred}%
+ \edef\co@id{\csname fn\number\theco@type @\@tempb\endcsname}%
+ \@itxplain{\number\theco@type}{\co@id}{#1}%
+ \foundtrue%
+ \fi%
+ \fi%
+ \stepcounter{co@type}%
+ \repeat%
+ \iffound%
+ \else%
+ \PackageWarning{InTeX}{Reference `#2' to undefined concept}%
+ \if@itx@warn@undef%
+ \textbf{\itxundefcomment{#2}}%
+ \else%
+ #2%
+ \fi%
+ \fi%
+}%
+\newcommand*{\personused}[1]{%
+ \expandafter\ifx\csname pnused@#1\endcsname\PN@used%
+ \relax%
+ \else%
+ \global\expandafter\let\csname pnused@#1\endcsname\PN@used%
+ \global\let\PN@populated\PN@used%
+ \fi%
+}%
+\newcommand\@itxdefineforms[3]{%
+ \expandafter\gdef\csname fnss@\number#1\endcsname{#2}%
+ \expandafter\gdef\csname fnsl@\number#1\endcsname{#3}%
+}%
+\newcommand\@newentry[4]{%
+ \def\@tempa{#2}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ %
+ \stepcounter{co@serial}%
+ %\PackageWarning{init}{serial counter = \expandafter\theco@serial}%
+ \expandafter\xdef\csname fn\number#1@\@tempb\endcsname{%
+ \number\theco@serial}%
+ %\PackageWarning{init}{Def: \meaning\csname fn\number#1@\@tempb\endcsname}%
+ \@itxdefineforms{\theco@serial}{#3}{#4}%
+}%
+\newcommand*\newconcept[3]{%
+ \@newentry{0}{#1}{#2}{#3}%
+}%
+\newcommand*\newacronym[3]{%
+ \@newentry{1}{#1}{#2}{#3}%
+}%
+\newcommand*\newperson[3]{%
+ \@newentry{2}{#1}{#2}{#3}%
+}%
+\newcommand*\@newentryequiv[5]{%
+ \newif\iffound%
+ \def\@tempa{#2}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ \expandafter\ifx\csname fn\number#1 @\@tempb\endcsname\relax%
+ \else%
+ \foundtrue%
+ \edef\co@id{\csname fn\number#1@\@tempb\endcsname}%
+ %\PackageWarning{init}{Found `\@tempb' (type=\number#1, serial=\co@id)}%
+ \stepcounter{co@serial}%
+ \@itxdefineforms{\theco@serial}{#3}{#5}%
+ \def\@tempa{#4}%
+ \edef\@tempb{\@nearverbatim\@tempa}%
+ \expandafter\xdef\csname fn\number#1 e@\@tempb\endcsname{%
+ {\co@id}{\theco@serial}}%
+ \fi%
+ \iffound%
+ \else%
+ %\PackageWarning{InTeX}{Can't find `#2' for sub-concept `#3'}%
+ \fi%
+}%
+\newcommand*\newconceptequiv[4]{%
+ \@newentryequiv{0}{#1}{#2}{#3}{#4}%
+}%
+\newcommand*\newacronymequiv[4]{%
+ \@newentryequiv{1}{#1}{#2}{#3}{#4}%
+}%
+\newcommand*\newpersonequiv[4]{%
+ \@newentryequiv{2}{#1}{#2}{#3}{#4}%
+}%
+\AtBeginDocument{\@input{\jobname.ito}}%
+\endinput%
+\endinput
+%%
+%% End of file `intex.sty'.
diff --git a/support/intex/latex/intex.tmp b/support/intex/latex/intex.tmp
new file mode 100644
index 0000000000..8e40b94d03
--- /dev/null
+++ b/support/intex/latex/intex.tmp
@@ -0,0 +1,8 @@
+\verb|mkintex| automatically inflects
+words following common patterns. For
+example, \co{index} and \co{indices}
+both refer to the same concept, even
+though only \verb|index| is entered
+in the \InTeX-file. The same goes for
+\co{vertex} and \co{vertices}, and
+\co{dog} and \co{dogs}.
diff --git a/support/intex/lib/intex/__init__.py b/support/intex/lib/intex/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/support/intex/lib/intex/__init__.py
diff --git a/support/intex/lib/intex/acronym_entry.py b/support/intex/lib/intex/acronym_entry.py
new file mode 100644
index 0000000000..1a14641304
--- /dev/null
+++ b/support/intex/lib/intex/acronym_entry.py
@@ -0,0 +1,247 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+import logging
+
+from entry import Entry
+from config import FIELD_SEPARATORS
+
+class AcronymEntry(Entry):
+ _generated_fields = [
+ # The values of REFERENCE are how this entry will be
+ # referred to in the text (\co{<reference>}).
+ 'reference',
+ 'reference_short',
+ # The values of TYPESET_IN_TEXT determines how the entry
+ # will be typeset in the text. If it was referred to in
+ # its plural form, the entry typeset will also be typeset
+ # with plural inflection.
+ 'typeset_in_text_short',
+ # The values of TYPESET_IN_INDEX defines how the entry will be
+ # typeset in the index.
+ 'typeset_in_index_short',
+ 'sort_as_short',
+ 'typeset_in_text_long',
+ 'typeset_in_index_long',
+ 'sort_as_long',
+ ]
+
+ # Different constants used for output formatting.
+ _label_width = len('typeset_in_index_short')
+
+ def __init__(self, index, parent, acronym=None, indent_level=None,
+ full_form=None, meta=None, alias=None, **rest):
+ # Set a couple of defining attributes before calling our base
+ # constructor.
+ for attribute in self._generated_fields:
+ setattr(self, attribute, dict.fromkeys([Entry.INFLECTION_SINGULAR,
+ Entry.INFLECTION_PLURAL]))
+
+ # Register this entry in the INDEX, set our PARENT and if we
+ # do have a parent, add ourselves to that PARENT's set of
+ # children.
+ Entry.__init__(self, index, parent, meta)
+
+ # If this entry is an alias for another entry, indicate that
+ # here.
+ self.alias = alias
+
+ self._setup(acronym, full_form, self._meta, indent_level)
+
+ # To enable a ConceptEntry to refer to an AcronymEntry:
+ self.typeset_in_index = self.typeset_in_index_long
+
+ def get_index_entry(self, length, inflection):
+ sort_as = getattr(self, 'sort_as_' + length)[inflection]
+ typeset_in_index = getattr(self,
+ 'typeset_in_index_' + length)[inflection]
+
+ return '%(sort_as)s@%(typeset_in_index)s' % locals()
+
+ def generate_index_entries(self, page, typeset_page_number=''):
+ inflection = self.index_inflection
+
+ if self.META_SORT_AS in self._meta:
+ sort_as_long = self._meta[self.META_SORT_AS]
+ logging.debug('Explicit sort key given "%s" (on page %s) => "%s".',
+ self.sort_as_long[inflection], page, sort_as_long)
+ else:
+ sort_as_long = self.sort_as_long[inflection]
+
+ sort_as_short = self.sort_as_short[inflection]
+
+ typeset_in_index_long = self.typeset_in_index_long[inflection]
+ typeset_in_index_short = self.typeset_in_index_short[inflection]
+
+ parent = self.parent
+
+ if parent:
+ parent_sort_as_long = parent.sort_as_long[inflection]
+ parent_typeset_in_index_long \
+ = parent.typeset_in_index_long[inflection]
+
+ parent_sort_as_short = parent.sort_as_short[inflection]
+ parent_typeset_in_index_short \
+ = parent.typeset_in_index_short[inflection]
+
+ yield '\indexentry{' \
+ '%(parent_sort_as_long)s@%(parent_typeset_in_index_long)s!' \
+ '%(sort_as_long)s@%(typeset_in_index_long)s' \
+ '%(typeset_page_number)s}{%(page)s}' % locals()
+
+ yield '\indexentry{' \
+ '%(parent_sort_as_short)s@%(parent_typeset_in_index_short)s' \
+ '|see{%(parent_typeset_in_index_long)s}}' \
+ '{0}' % locals()
+
+ yield '\indexentry{' \
+ '%(parent_sort_as_short)s@%(parent_typeset_in_index_short)s!' \
+ '%(sort_as_short)s@%(typeset_in_index_short)s' \
+ '|see{---, %(typeset_in_index_long)s}}' \
+ '{0}' % locals()
+
+ else:
+ yield '\indexentry{' \
+ '%(sort_as_long)s@%(typeset_in_index_long)s' \
+ '%(typeset_page_number)s}' \
+ '{%(page)s}' % locals()
+
+ yield '\indexentry{%(sort_as_short)s@' \
+ '%(typeset_in_index_short)s|see{%(typeset_in_index_long)s}}' \
+ '{0}' % locals()
+
+ def generate_internal_macros(self, inflection):
+ type_name = self.get_entry_type()
+ reference = self.reference[inflection]
+ typeset_in_text_short = self.typeset_in_text_short[inflection]
+ typeset_in_text_full = self.typeset_in_text_long[inflection]
+
+ yield '\\new%(type_name)s{%(reference)s}{%(typeset_in_text_short)s}' \
+ '{%(typeset_in_text_full)s}' \
+ % locals()
+
+ if self.use_short_reference and self.reference_short[inflection]:
+ reference = self.reference_short[inflection]
+
+ yield '\\new%(type_name)s{%(reference)s}' \
+ '{%(typeset_in_text_short)s}' \
+ '{%(typeset_in_text_full)s}' \
+ % locals()
+
+ def get_plain_header(self):
+ return self._line_format \
+ % ('',
+ self.bold_it('singular'.center(self._column_width)),
+ self.bold_it('plural'.center(self._column_width)))
+
+ def __str__(self):
+ if self.alias:
+ alias_line = '\n' + self._line_format % ('alias', self.alias, '', )
+ else:
+ alias_line = ''
+
+ return '\n'.join([self._line_format \
+ % (attribute,
+ getattr(self, attribute)['singular'],
+ getattr(self, attribute)['plural'],)
+ for attribute in self._generated_fields]) \
+ + alias_line
+
+ def _setup(self, concept, full_form, meta, indent_level):
+ # Trying to figure out the most appropriate features to
+ # represent a concept entry:
+ (current_inflection, complement_inflection) = \
+ self.get_current_and_complement_inflection(meta)
+
+ # The INDEX_INFLECTION value defines how the entry should be
+ # sorted in the index. The value is determined by the value
+ # of INDEX.DEFAULT_INFLECTION and the given inflection of the
+ # current entry.
+ self.index_inflection = current_inflection
+
+ field_variable_map = [
+ ('reference', 'reference'),
+ ('reference_short', 'reference_short'),
+ ('sort_as_short', 'reference'),
+ ('typeset_in_text_short', 'typeset'),
+ ('typeset_in_index_short', 'typeset'),
+ ('sort_as_long', 'sort_as_long'),
+ ('typeset_in_text_long', 'typeset_long'),
+ ('typeset_in_index_long', 'typeset_long'),
+ ]
+
+ if indent_level == 0:
+ # Main entry.
+ if not full_form:
+ raise MissingAcronymExpansionError(concept)
+
+ reference, typeset = self.format_reference_and_typeset(concept)
+ reference_short = [] # Only used for sub-entries.
+
+ sort_as_long, typeset_long \
+ = self.format_reference_and_typeset(full_form)
+ if self.META_SORT_AS in self._meta:
+ sort_as_long = [self._meta[self.META_SORT_AS]]
+
+ for field, variable in field_variable_map:
+ value = ' '.join(locals()[variable])
+ getattr(self, field)[current_inflection] = value
+
+ if meta.has_key(Entry.META_COMPLEMENT_INFLECTION):
+ reference, typeset \
+ = self.format_reference_and_typeset(\
+ meta[Entry.META_COMPLEMENT_INFLECTION])
+ else:
+ reference, typeset = \
+ self.get_complement_inflections(reference, typeset,
+ current_inflection)
+ sort_as_long, typeset_long = \
+ self.get_complement_inflections(sort_as_long, typeset_long,
+ current_inflection)
+
+ for field, variable in field_variable_map:
+ value = ' '.join(locals()[variable])
+ getattr(self, field)[complement_inflection] = value
+
+ else:
+ # Sub-entry.
+ if full_form is None:
+ full_form = concept
+
+ for inflection in (current_inflection, complement_inflection):
+ for field, value \
+ in self.expand_sub_entry(concept, inflection,
+ current_inflection,
+ field_variable_map,
+ full_form).items():
+ value = self.unescape(value.strip(), FIELD_SEPARATORS + '-')
+ getattr(self, field)[inflection] = value
+
+ if current_inflection == Entry.INFLECTION_NONE:
+ for (inflection, attribute) in cartesian(
+ (Entry.INFLECTION_SINGULAR, Entry.INFLECTION_PLURAL, ),
+ [field for field, variable in field_variable_map]):
+ getattr(self, attribute)[inflection] = \
+ getattr(self, attribute)[Entry.INFLECTION_NONE]
diff --git a/support/intex/lib/intex/concept_entry.py b/support/intex/lib/intex/concept_entry.py
new file mode 100644
index 0000000000..f630937c98
--- /dev/null
+++ b/support/intex/lib/intex/concept_entry.py
@@ -0,0 +1,274 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+import logging
+
+from config import FIELD_SEPARATORS
+from paren_parser import cartesian
+from entry import Entry
+
+class ConceptEntry(Entry):
+ _generated_fields = [
+ # The values of REFERENCE are how this entry will be referred
+ # to in the text (\co{<reference>}).
+ 'reference',
+ 'reference_short',
+ # The values of TYPESET_IN_TEXT determines how the entry will
+ # be typeset in the text. If it was referred to in its plural
+ # form, the entry typeset will also be typeset with plural
+ # inflection.
+ 'typeset_in_text',
+ # The values of TYPESET_IN_INDEX defines how the entry will be
+ # typeset in the index.
+ 'typeset_in_index',
+ ]
+
+ # Redefining _LINE_FORMAT to handle two Capitalized columns.
+ _line_format = '%(_bold_on)s%%%(_label_width)ds%(_bold_off)s ' \
+ '%%-%(_column_width)ds ' \
+ '%%-%(_column_width)ds ' \
+ '%%-%(_column_width)ds ' \
+ '%%-%(_column_width)ds'
+
+ _repr_inflections = (
+ Entry.INFLECTION_SINGULAR,
+ Entry.INFLECTION_PLURAL,
+ Entry.INFLECTION_SINGULAR_CAPITALIZED,
+ Entry.INFLECTION_PLURAL_CAPITALIZED,
+ )
+
+ def __init__(self, index, parent, concept=None, indent_level=None,
+ plural=None, index_as=None, sort_as=None, meta=None,
+ alias=None, **rest):
+ # Set a couple of defining attributes before calling our base
+ # constructor.
+ for attribute in self._generated_fields:
+ setattr(self, attribute,
+ dict.fromkeys([Entry.INFLECTION_SINGULAR,
+ Entry.INFLECTION_PLURAL,
+ ]))
+
+ # Call the base constructor.
+ Entry.__init__(self, index, parent, meta)
+
+ # If this entry is an alias for another entry, indicate that
+ # here.
+ self.alias = alias
+
+ if concept:
+ concept = self.unescape(concept.strip())
+ else:
+ concept = ''
+
+ self._setup(concept, self._meta, indent_level)
+
+ def generate_index_entries(self, page, typeset_page_number=''):
+ inflection = self.index_inflection
+
+ if self.META_SORT_AS in self._meta:
+ sort_as = self._meta[self.META_SORT_AS]
+ logging.info('Explicit sort key given "%s" (on page %s) => "%s".',
+ self.reference[inflection], page, sort_as)
+ else:
+ sort_as = self.reference[inflection]
+
+ typeset_in_index = self.typeset_in_index[inflection]
+
+ # If this is an alias entry, the index entries are affected.
+ # Generate the index entries accordingly.
+ if self.alias:
+ concept, _inflection = self.index.references[self.alias]
+ for entry in concept.generate_index_entries(page,
+ typeset_page_number):
+ yield entry
+
+ orig_typeset_in_index = concept.typeset_in_index[inflection]
+
+ yield '\indexentry{%(sort_as)s@' \
+ '%(typeset_in_index)s|see{%(orig_typeset_in_index)s}}' \
+ '{0}' % locals()
+
+ return # Skip the regular index entries.
+
+ if self.META_COMMENT in self._meta:
+ comment = ' %s' % (self._meta[self.META_COMMENT], )
+ else:
+ comment = ''
+
+ parent = self.parent
+
+ if not parent is None:
+ if self.META_SORT_AS in parent._meta:
+ parent_sort_as = parent._meta[self.META_SORT_AS]
+ logging.info('Explicit parent sort key given "%s" '
+ '(on page %s) => "%s".',
+ parent.reference[inflection], page, parent_sort_as)
+ else:
+ parent_sort_as = parent.reference[inflection]
+
+ # Avoid erroneous typesetting of explicit hyphenation
+ # hints.
+ parent_typeset_in_index = self.unescape(
+ parent.typeset_in_index[inflection], '-')
+ #parent_typeset_in_index = parent.typeset_in_index[inflection]
+
+ yield '\indexentry{' \
+ '%(parent_sort_as)s@%(parent_typeset_in_index)s!' \
+ '%(sort_as)s@%(typeset_in_index)s%(comment)s' \
+ '%(typeset_page_number)s}{%(page)s}' % locals()
+ else:
+ # Avoid erroneous typesetting of explicit hyphenation
+ # hints.
+ typeset_in_index = self.unescape(typeset_in_index, '-')
+
+ yield '\indexentry{%(sort_as)s@%(typeset_in_index)s%(comment)s' \
+ '%(typeset_page_number)s}{%(page)s}' \
+ % locals()
+
+ def generate_internal_macros(self, inflection):
+ type_name = self.get_entry_type()
+ reference = self.reference[inflection]
+ typeset_in_text = self.typeset_in_text[inflection]
+ #typeset_in_text = self.unescape(self.typeset_in_text[inflection], '-')
+
+ if self.parent is None:
+ typeset_in_text = self.unescape(typeset_in_text, '-')
+
+ yield '\\new%(type_name)s{%(reference)s}{%(typeset_in_text)s}' \
+ '{XC.0}' \
+ % locals()
+
+ if self.use_short_reference and self.reference_short[inflection]:
+ reference = self.reference_short[inflection]
+
+ yield '\\new%(type_name)s{%(reference)s}{%(typeset_in_text)s}' \
+ '{XC.1}' \
+ % locals()
+
+
+ def get_plain_header(self):
+ return self._line_format \
+ % (('', ) \
+ + tuple(self.bold_it(inflection.center(self._column_width))
+ for inflection in self._repr_inflections))
+
+ def __str__(self):
+ if self.alias:
+ alias_line = '\n' \
+ + self._line_format % ('alias', self.alias, '', '', '')
+ else:
+ alias_line = ''
+
+ line_fields = [(attribute,) \
+ + tuple(getattr(self, attribute).has_key(inflection) \
+ and getattr(self, attribute)[inflection] or ''
+ for inflection in self._repr_inflections)
+ for attribute in self._generated_fields]
+
+ return '\n'.join([self._line_format % fields
+ for fields in line_fields]) \
+ + alias_line
+
+ def _setup(self, concept, meta, indent_level):
+ # Trying to figure out the most appropriate features to
+ # represent a concept entry:
+ (current_inflection, complement_inflection) = \
+ self.get_current_and_complement_inflection(meta)
+
+ # The INDEX_INFLECTION value defines how the entry should be
+ # sorted in the index. The value is determined by the value
+ # of INDEX.DEFAULT_INFLECTION and the given inflection of the
+ # current entry.
+ self.index_inflection = current_inflection
+
+ attribute_variable_map = [
+ ('reference', 'reference'),
+ ('reference_short', 'reference'),
+ ('typeset_in_text', 'typeset'),
+ ('typeset_in_index', 'typeset')]
+
+ if indent_level == 0:
+ # If CONCEPT, then the current entry is a main entry.
+ reference, typeset = self.format_reference_and_typeset(concept)
+ reference_short = [] # Only used for sub-entries.
+
+ for attribute, variable in attribute_variable_map:
+ value = ' '.join(locals()[variable])
+ getattr(self, attribute)[current_inflection] = value
+
+ if meta.has_key(Entry.META_COMPLEMENT_INFLECTION):
+ reference, typeset \
+ = self.format_reference_and_typeset(\
+ meta[Entry.META_COMPLEMENT_INFLECTION])
+ else:
+ reference, typeset = \
+ self.get_complement_inflections(reference, typeset,
+ current_inflection)
+
+ for attribute, variable in attribute_variable_map:
+ value = ' '.join(locals()[variable])
+ getattr(self, attribute)[complement_inflection] = value
+
+ else:
+ # This is a sub-entry.
+ for inflection in (current_inflection, complement_inflection):
+ for attribute, value \
+ in self.expand_sub_entry(concept, inflection,
+ current_inflection,
+ attribute_variable_map).items():
+ getattr(self, attribute)[inflection] = value
+
+ for (inflection, attribute) in cartesian(
+ (Entry.INFLECTION_SINGULAR, Entry.INFLECTION_PLURAL, ),
+ [attribute for (attribute, variable) in attribute_variable_map]):
+
+ concept = getattr(self, attribute)[inflection]
+ getattr(self, attribute)[inflection] \
+ = self.unescape(concept.strip(), FIELD_SEPARATORS + '-')
+
+ if current_inflection == Entry.INFLECTION_NONE:
+ getattr(self, attribute)[inflection] = \
+ getattr(self, attribute)[Entry.INFLECTION_NONE]
+
+ # Create capitalized versions of the different inflections.
+ for (inflection, attribute) \
+ in cartesian((Entry.INFLECTION_SINGULAR,
+ Entry.INFLECTION_PLURAL,
+ Entry.INFLECTION_NONE,
+ ),
+ [attribute
+ for attribute, variable \
+ in attribute_variable_map[:3]]):
+
+ if hasattr(self, attribute) \
+ and getattr(self, attribute).has_key(inflection):
+ original = getattr(self, attribute)[inflection]
+ capitalized = self.capitalize(original)
+
+ if capitalized != original:
+ capitalized_inflection = Entry._capitalized[inflection]
+ getattr(self,
+ attribute)[capitalized_inflection] = capitalized
+
diff --git a/support/intex/lib/intex/config.py b/support/intex/lib/intex/config.py
new file mode 100644
index 0000000000..4a8582a896
--- /dev/null
+++ b/support/intex/lib/intex/config.py
@@ -0,0 +1,43 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "1.8.0"
+
+INTEX_DEFAULT_INDEX = 'raw'
+INTEX_INPUT_EXT = 'itx'
+INTEX_OUTPUT_EXT = 'ito'
+
+TOKEN_COMMENT = '%'
+TOKEN_SHORT_PLURAL_FORM = '#'
+TOKEN_ENTRY_META_INFO = ':'
+TOKEN_TYPESET_AS = '@'
+
+FIELD_SEPARATORS = '\t'
+
+def main():
+ """Module mainline (for standalone execution)."""
+ pass
+
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/config.py.in b/support/intex/lib/intex/config.py.in
new file mode 100644
index 0000000000..2bedbb4fbe
--- /dev/null
+++ b/support/intex/lib/intex/config.py.in
@@ -0,0 +1,43 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+INTEX_DEFAULT_INDEX = 'raw'
+INTEX_INPUT_EXT = 'itx'
+INTEX_OUTPUT_EXT = 'ito'
+
+TOKEN_COMMENT = '%'
+TOKEN_SHORT_PLURAL_FORM = '#'
+TOKEN_ENTRY_META_INFO = ':'
+TOKEN_TYPESET_AS = '@'
+
+FIELD_SEPARATORS = '\t'
+
+def main():
+ """Module mainline (for standalone execution)."""
+ pass
+
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/entry.py b/support/intex/lib/intex/entry.py
new file mode 100644
index 0000000000..5602f8205a
--- /dev/null
+++ b/support/intex/lib/intex/entry.py
@@ -0,0 +1,518 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+import logging
+import re
+
+from config import FIELD_SEPARATORS, TOKEN_ENTRY_META_INFO, TOKEN_TYPESET_AS
+from paren_parser import ParenParser
+from utils import flatten, escape_aware_split, escape_aware_rsplit
+
+ESCAPE_TOKEN = '\\'
+ALIAS_INDICATOR = '-->'
+
+def normalize(string, token=None):
+ """Returns a new string where multiple consecutive occurences of
+ TOKEN have been replaced by a single occurence. If TOKEN is None,
+ it is interpreted as white-space.
+ """
+ return (token or ' ').join(string.split(token))
+
+class EntryError(Exception):
+ """Base class for errors in the entry module.
+ """
+
+class MissingAcronymExpansionError(EntryError):
+ """This error occurrs when a main acronym entry is missing a
+ full-form expansion.
+ """
+class MultipleAliasIndicatorsError(EntryError):
+ """Multiple alias indicators ('%(ALIAS_INDICATOR)s') were
+ detected.
+ """
+
+class Entry(object):
+ paren_parser = ParenParser()
+
+ # Define a number of class constants, each string will be defined
+ # as an all-uppercase "constant". That is 'this_value' is
+ # assigned to __class__.THIS_VALUE.
+ for constant in (
+ # Different meta fields:
+ 'meta_complement_inflection',
+ 'meta_given_inflection',
+ 'meta_text_vs_index_hint',
+ 'meta_sort_as',
+ 'meta_comment',
+ # Some inflection values:
+ 'inflection_plural',
+ 'inflection_singular',
+ 'inflection_none',
+ # For capitalization support:
+ 'inflection_plural_capitalized',
+ 'inflection_singular_capitalized',
+ 'inflection_none_capitalized',
+ # Meaning of placeholders:
+ 'placeholder_in_text_and_index',
+ 'placeholder_in_index_only',
+ ):
+ exec("%s='%s'" % (constant.upper(),
+ ''.join(constant.split('_', 1)[1:])))
+
+ _capitalized = {
+ INFLECTION_PLURAL: INFLECTION_PLURAL_CAPITALIZED,
+ INFLECTION_SINGULAR: INFLECTION_SINGULAR_CAPITALIZED,
+ INFLECTION_NONE: INFLECTION_NONE_CAPITALIZED,
+ }
+
+ _shorthand_inflection = {
+ '+': INFLECTION_PLURAL,
+ '-': INFLECTION_SINGULAR,
+ '!': INFLECTION_NONE,
+ }
+
+ _complement_inflection = {
+ INFLECTION_SINGULAR: INFLECTION_PLURAL,
+ INFLECTION_PLURAL: INFLECTION_SINGULAR,
+ INFLECTION_NONE: INFLECTION_NONE,
+ }
+
+ _unescape_re = re.compile(r'(?P<pre>.*?)[\\](?P<post>[%s])' \
+ % FIELD_SEPARATORS)
+
+ # Regular expression for splitting inside meta-fields, but taking
+ # care of not splitting on escaped "split-tokens".
+ _meta_split_re = re.compile(r'''
+ (?<![\\]) # If the previous token was not a "\", then
+ %s # match a TOKEN_ENTRY_META_INFO.
+ ''' % (TOKEN_ENTRY_META_INFO), re.VERBOSE)
+
+ # Note that the order is significant (also when the pairs are
+ # reversed below).
+ _plural_to_singular = [
+ ('yses', 'ysis'),
+ ('ices', 'ex'),
+ ('ies', 'y'),
+ ('ses', 's'),
+ ('s', ''),
+ ]
+
+ _singular_to_plural = [(singular, plural)
+ for plural, singular in _plural_to_singular]
+
+ _none_to_none = []
+
+ _inflection_pair = {
+ INFLECTION_SINGULAR: _plural_to_singular,
+ INFLECTION_PLURAL: _singular_to_plural,
+ INFLECTION_NONE: _none_to_none,
+ }
+
+ _placeholder_meaning = {
+ '-': PLACEHOLDER_IN_TEXT_AND_INDEX,
+ '(-)': PLACEHOLDER_IN_INDEX_ONLY,
+ }
+
+ _hint_re = re.compile('(?P<placeholder>%s)' \
+ % '|'.join(map(re.escape, _placeholder_meaning)))
+
+ # Different constants and defaults used for output formatting.
+ _bold_on = '\033[1m'
+ _bold_off = '\033[0m'
+
+ # These parameters may (and should) be overridden in derived
+ # classes.
+ _label_width = len('typeset_in_index')
+ _column_width = 28
+ _line_format = '%(_bold_on)s%%%(_label_width)ds%(_bold_off)s ' \
+ '%%-%(_column_width)ds ' \
+ '%%-%(_column_width)ds'
+
+ def __init__(self, index, parent, meta):
+ index.append(self)
+
+ self._identity = (len(index) - 1)
+ self._index = index
+ self._parent = parent
+ self._children = set()
+
+ if self.parent:
+ # Include ourselves among our parent's children.
+ self.parent.add_child(self._identity)
+
+ if meta:
+ self._meta = self.parse_meta(meta.strip())
+ else:
+ self._meta = dict()
+
+ # Define appropriate output formatting.
+ mapping = dict((key, getattr(self, key)) for key in dir(self))
+ self._line_format = self._line_format % mapping
+
+ def bold_it(self, string):
+ return self._bold_on + string + self._bold_off
+
+ def __repr__(self):
+ return '%s(%s)' % (self.__class__.__name__,
+ ', '.join('%s=%s' \
+ % (attribute, getattr(self, attribute))
+ for attribute in self._generated_fields))
+
+ def generate_index_entries(self, page, typeset_page_number=None):
+ raise NotImplementedError('This method must be implemented in '
+ 'derived classes.')
+
+ def get_entry_type(self):
+ return self.__class__.__name__[:- len('Entry')].lower()
+
+ def generate_internal_macros(self, inflection):
+ raise NotImplementedError('This method must be implemented in '
+ 'derived classes.')
+
+ def parse_meta(self, meta):
+ """Parse the metadata fields of an entry definition and return
+ their interpretations.
+ """
+ parts = self._meta_split_re.split(meta)
+
+ info = dict()
+
+ assert(parts[0] == '')
+
+ for part in parts[1:]:
+ if not part:
+ logging.error('Unsuspected data in meta directive.')
+
+ if not part.startswith('#'):
+ key, value = escape_aware_split(part, '=', 1)
+
+ if key == 'sort_as':
+ info[self.META_SORT_AS] = \
+ self.paren_parser.strip(value.rstrip())
+ elif key == 'comment':
+ info[self.META_COMMENT] = value.rstrip()
+ else:
+ info[self.META_TEXT_VS_INDEX_HINT] = part
+ continue
+
+ if len(part) == 2:
+ assert(part[-1] in self._shorthand_inflection)
+ info[self.META_GIVEN_INFLECTION] = \
+ self._shorthand_inflection[part[1:]]
+
+ else:
+ info[self.META_COMPLEMENT_INFLECTION] = part[1:]
+
+ return info
+
+ def get_alias_if_defined(self, string):
+ parts = escape_aware_split(string, ALIAS_INDICATOR)
+
+ if len(parts) < 2:
+ return string, None
+ elif len(parts) == 2:
+ return parts[0].rstrip(), parts[1].lstrip()
+ else:
+ raise MultipleAliasIndicatorsError('string="%s"' % string)
+
+ @staticmethod
+ def unescape(string, escaped_tokens=FIELD_SEPARATORS,
+ escape_token=ESCAPE_TOKEN):
+ """Unescapes escaped field separators.
+ """
+ # It must shrink or stay the same size. It cannot grow.
+ new = list(string)
+
+ previous_was_escape = False
+ previous_token = None
+
+ for i, token in reversed(list(enumerate(string))):
+ if (token == escape_token) \
+ and (previous_token in escaped_tokens) \
+ and not (previous_token == escape_token):
+ # If CONTIGUOUS_ESCAPES is zero or even.
+ del new[i]
+
+ previous_token = token
+
+ return ''.join(new)
+
+ def get_complement_inflections(self, reference, typeset,
+ current_inflection):
+ result = []
+
+ for words in [reference, typeset]:
+ copy = words[:] # Make a copy of the list of words.
+
+ copy[-1] = self.change_inflection(copy[-1], current_inflection)
+
+ result.append(copy)
+
+ return result
+
+ def get_inflection(self, word, inflection):
+ for suffix, replacement in self._inflection_pair[inflection]:
+ if word.endswith(suffix):
+ offset = (- len(suffix)) or None
+ return word[:offset] + replacement
+
+ return word
+
+ def change_inflection(self, word, current_inflection):
+ return self.get_inflection(
+ word, self._complement_inflection[current_inflection])
+
+ def get_current_and_complement_inflection(self, meta):
+ if Entry.META_GIVEN_INFLECTION in meta:
+ # If a specific inflection was indicated through the
+ # meta information, use that.
+ current_inflection = meta[Entry.META_GIVEN_INFLECTION]
+ else:
+ # If not, use the DEFAULT_INFLECTION of the INDEX.
+ current_inflection = self.index.default_inflection
+
+ complement_inflection = self._complement_inflection[current_inflection]
+
+ return current_inflection, complement_inflection
+
+ def escape_aware_split(self, string, delimiter=None, maxsplit=None):
+ parts = self.paren_parser.split(string, delimiter, maxsplit)
+
+ #if delimiter is None:
+ # delimiter = ' '
+
+ for i, part in reversed(list(enumerate(parts))):
+ if part[-1] == ESCAPE_TOKEN:
+ parts[i] = delimiter.join((parts[i], parts[i + 1]))
+ del parts[i + 1]
+
+ return parts
+
+ def format_reference_and_typeset(self, string, strip_parens=True):
+ parts = self.paren_parser.split(string)
+
+ if strip_parens:
+ parts = [self.paren_parser.strip(part, '([') for part in parts]
+
+ #parts = [self.unescape(part, '-') for part in parts]
+
+ reference = []
+ typeset = []
+
+ for part in parts:
+ # FIXME: At the time this was written (2007-07-05)
+ # ParenParser.split did not honor its MAXSPLIT argument (1
+ # below).
+ alternatives = self.escape_aware_split(part, TOKEN_TYPESET_AS, 1)
+
+ # Perhaps a bad solution to a problem of @-typesetting
+ # sub-entries. Thus, if you _want_ surrounding {}s, then
+ # use a double set of them.
+ alternatives = [self.paren_parser.strip(alternative, '{')
+ for alternative in alternatives]
+
+ if strip_parens:
+ alternatives = [self.paren_parser.strip(alternative, '([')
+ for alternative in alternatives]
+
+ reference.append(alternatives[0])
+
+ if len(alternatives) > 1:
+ typeset.append(alternatives[1])
+ else:
+ typeset.append(alternatives[0])
+
+ reference = flatten(self.escape_aware_split(part) for part in reference)
+ typeset = flatten(self.escape_aware_split(part) for part in typeset)
+
+ #typeset = [self.unescape(part, '-') for part in typeset]
+
+ return reference, typeset
+
+ def is_escaped(self, string, i):
+ """Returns True if the token in STRING at position I is escaped.
+ """
+ if i > 0:
+ for n, character in enumerate(string[(i - 1)::-1]):
+ if character != ESCAPE_TOKEN:
+ break
+ else:
+ n = 0 # The token can't have been escaped.
+
+ return bool(n & 1) # Is the number of escape tokens odd?
+
+ def expand_sub_entry_part(self, template, is_last_token, inflection,
+ current_inflection, field):
+ """Note: CURRENT_INFLECTION refers to the inflection given in
+ the source file, while INFLECTION is the target inflection of
+ the entry we are generating.
+ """
+ formatted = ''
+
+ k = None
+
+ for match in self._hint_re.finditer(template):
+ placeholder = match.group('placeholder')
+ i, j = match.span('placeholder')
+
+ # Check if the PLACEHOLDER token is escaped or not. If it
+ # is, then do nothing.
+ if self.is_escaped(template, i):
+ continue
+
+ # Select the approriate replacement phrase from the
+ # parent, based on the target INFLECTION.
+ if not is_last_token:
+ source = getattr(self.parent, field)['singular']
+ else:
+ source = getattr(self.parent, field)[inflection]
+
+ # Construct the new phrase.
+ #if (self._placeholder_meaning[placeholder] \
+ # == self.PLACEHOLDER_IN_INDEX_ONLY) \
+ # and (field.startswith('typeset_in_index')):
+ # formatted += template[k:i] + '--'
+ #print self._placeholder_meaning
+ #print self._placeholder_meaning[placeholder]
+
+ if field.startswith('typeset_in_index'):
+ formatted += template[k:i] + '--'
+ elif ((field == 'reference_short') \
+ or field.startswith('typeset_in_text')) \
+ and (self._placeholder_meaning[placeholder] \
+ == self.PLACEHOLDER_IN_INDEX_ONLY):
+ formatted += template[k:i]
+ else:
+ formatted += template[k:i] + source
+
+ k = j
+
+ break
+ else:
+ # If nothing really got replaced.
+ if is_last_token:
+ if inflection == current_inflection:
+ formatted = template
+ else:
+ formatted = self.get_inflection(template, inflection)
+
+ k = len(template)
+
+ if k < len(template):
+ formatted += template[k:]
+
+ return formatted
+
+ def expand_sub_entry(self, template, inflection, current_inflection,
+ field_variable_map, template_long=None):
+ reference, typeset = self.format_reference_and_typeset(template, False)
+
+ if template_long:
+ sort_as_long, typeset_long \
+ = self.format_reference_and_typeset(template_long, False)
+
+ results = dict()
+ variables = locals()
+
+ for field, variable in field_variable_map:
+ if not variables.has_key(variable):
+ continue
+
+ parts = variables[variable]
+ template_list = [
+ self.expand_sub_entry_part(part, (pos == (len(parts) - 1)),
+ inflection, current_inflection,
+ field)
+ for pos, part in enumerate(parts)]
+
+ # Remove empty/blank elements.
+ template_list = [part for part in template_list if part]
+
+ results[field] = ' '.join(template_list)
+
+ return results
+
+ # Accessors for the 'identity' property (_-prefixed to force
+ # access through the property):
+ def _get_identity(self):
+ return self._identity
+
+ def _set_identity(self, identity):
+ self._identity = identity
+
+ identity = property(_get_identity, _set_identity, None,
+ 'The identity of this entry.')
+
+ # Accessors for the 'parent' property (_-prefixed to force
+ # access through the property):
+ def _get_parent(self):
+ if self._parent == None:
+ return None
+ return self._index[self._parent]
+
+ def _set_parent(self, parent):
+ self._parent = parent
+
+ parent = property(_get_parent, _set_parent, None,
+ 'The parent of this entry.')
+
+ def add_child(self, child_identity):
+ self._children.add(child_identity)
+
+ # Accessors for the 'children' property (_-prefixed to force
+ # access through the property):
+ def _get_children(self):
+ return [self._index[child_id]
+ for child_id in sorted(self._children)]
+
+ children = property(_get_children, None, None,
+ 'The children of this entry.')
+
+ # Accessors for the 'index' property (_-prefixed to force
+ # access through the property):
+ def _get_index(self):
+ return self._index
+
+ index = property(_get_index, None, None,
+ 'The index that this entry belongs to.')
+
+ def to_latex(self):
+ raise NotImplementedError
+
+ @staticmethod
+ def capitalize(string):
+ for i, token in enumerate(string):
+ if token.isalpha():
+ return string[:i] + token.upper() + string[i + 1:]
+
+ return string
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ pass
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/index.py b/support/intex/lib/intex/index.py
new file mode 100644
index 0000000000..ac5416f590
--- /dev/null
+++ b/support/intex/lib/intex/index.py
@@ -0,0 +1,495 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+from collections import defaultdict
+from cStringIO import StringIO
+import logging
+import re
+import sys
+
+from config import (
+ FIELD_SEPARATORS,
+ INTEX_DEFAULT_INDEX,
+ TOKEN_COMMENT,
+ TOKEN_ENTRY_META_INFO,
+ )
+from acronym_entry import AcronymEntry
+from concept_entry import ConceptEntry
+from person_entry import PersonEntry
+from stack import Stack
+from utils import flatten, escape_aware_rsplit
+
+import entry
+
+class _IndexError(Exception):
+ """Base class for errors in the index module.
+ """
+
+class IndexSyntaxError(_IndexError, SyntaxError):
+ """Error caused by invalid syntax in the input .itx file.
+ """
+
+class Index(list):
+ _intex_re = re.compile('\\\@writefile\{%s\}' \
+ '\{\\\indexentry\{(?P<key>.*)\}\{(?P<page>\w+)\}\}' \
+ % (INTEX_DEFAULT_INDEX))
+
+ _aux_input_re = re.compile('\\\@input\{(?P<filename>.*\.aux)\}')
+
+ _concept_types = ['ACRONYMS', 'PEOPLE', 'CONCEPTS']
+ _index_attrbiutes = {
+ 'name': None,
+ }
+
+ _re_macros = {
+ 'FIELD': '''
+ [^%(COMMENT_TOKEN)s:\s] # Non-comment and non-meta.
+ ( # Either
+ # escaped field separators
+ \\\\[%(FIELD_SEPARATORS)s%(META_TOKEN)s]
+ | # or
+ # non-field-separators
+ [^%(FIELD_SEPARATORS)s%(META_TOKEN)s]
+ )+ # repeated.
+ ''',
+ 'FIELD_SEPARATORS': FIELD_SEPARATORS,
+ 'COMMENT_TOKEN': TOKEN_COMMENT,
+ 'META_TOKEN': TOKEN_ENTRY_META_INFO,
+ 'ALIAS_POINTER': '-->',
+ }
+ # Instantiate/format the FIELD macro value by supplying the other
+ # (i.e., FIELD_SEPARATORS, COMMENT_TOKEN, and META_TOKEN) mappings
+ # in _RE_MACROS.
+ _re_macros['FIELD'] = _re_macros['FIELD'] % _re_macros
+
+ # A regulare expression to match aliasing index entries.
+ _alias_re = re.compile('''
+ ^ # Starts with
+ (?P<entry>.+) # the entry (including whitespace),
+ \s*?%(ALIAS_POINTER)s\s* # the alias indicator,
+ (?P<alias>.+) # the entry being aliased,
+ $ # at the end.
+ ''' % _re_macros, re.VERBOSE)
+
+ # Regular expressions, one pattern matcher for each context:
+ _concept_re = re.compile('''
+ ^ # Starts with
+ (?P<indent>\s+)? # (possible) indentation,
+ (?P<concept>%(FIELD)s)? # an entry,
+ [%(FIELD_SEPARATORS)s]* # a separator,
+ (?P<typeset_as>%(FIELD)s)? # the full form,
+ [%(FIELD_SEPARATORS)s]* # another separator,
+ (?P<meta>%(META_TOKEN)s.+)? # meta information
+ $ # at the end.
+ ''' % _re_macros, re.VERBOSE)
+
+ _acronym_re = re.compile('''
+ ^ # Starts with
+ (?P<indent>\s+)? # (possible) indentation,
+ (?P<acronym>%(FIELD)s)? # an entry,
+ [%(FIELD_SEPARATORS)s]* # a separator,
+ (?P<full_form>%(FIELD)s)? # the full form,
+ [%(FIELD_SEPARATORS)s]* # another separator,
+ (?P<typeset_as>%(FIELD)s)? # the full form,
+ [%(FIELD_SEPARATORS)s]* # another separator,
+ (?P<meta>%(META_TOKEN)s.+)? # meta information
+ $ # at the end.
+ ''' % _re_macros, re.VERBOSE)
+
+ _person_re = re.compile('''
+ ^ # Starts with
+ (?P<indent>\s+)? # (possible) indentation,
+ (?P<initials>%(FIELD)s)? # an entry,
+ [%(FIELD_SEPARATORS)s]* # a separator,
+ (?P<name>%(FIELD)s)? # the name,
+ [%(FIELD_SEPARATORS)s]* # another separator
+ (?P<meta>%(META_TOKEN)s.+)? # meta information
+ $ # at the end.
+ ''' % _re_macros, re.VERBOSE)
+
+ # A map between context names and the match patterns:
+ _context_matcher = {
+ 'ACRONYMS': _acronym_re,
+ 'CONCEPTS': _concept_re,
+ 'PEOPLE': _person_re,
+ }
+
+ _context_class = {
+ 'ACRONYMS': AcronymEntry,
+ 'CONCEPTS': ConceptEntry,
+ 'PEOPLE': PersonEntry,
+ }
+
+ # Add a macro definition to the values available when constructing
+ # the regular expressions below.
+ _re_macros['CONCEPT_TYPES'] = '|'.join(_context_matcher.keys())
+
+ # A pattern to match meta directives:
+ _meta_directive_re = re.compile('''
+ ^ # Starts with
+ %(COMMENT_TOKEN)s # the comment token,
+ \s* # possibly some whitespace,
+ ( # then either
+ (?P<attribute>\w+)\s* # an attribute
+ = # sat to
+ \s*(?P<value>\w+) # some value,
+ | # or
+ (?P<context>\*(%(CONCEPT_TYPES)s)\*) # a context switch
+ ) # followed by
+ \s* # possibly trailing whitespace
+ $ # at the end.
+ ''' % _re_macros, re.VERBOSE)
+
+ # A pattern to match comment-only lines.
+ _pure_comment_re = re.compile('''
+ ^ # Starts with
+ \s* # possibly some whitespace
+ %(COMMENT_TOKEN)s # and the comment token,
+ .* # followed by anything.
+ ''' % _re_macros, re.VERBOSE)
+
+ # A list used to instantiate the context dependent parser.
+ _matchers = [
+ _meta_directive_re, # For matching meta directives.
+ _pure_comment_re, # For matching pure comments.
+ None, # The current context will be placed here.
+ ]
+
+ def __init__(self, filename=None, index_name='default'):
+ """The constructor.
+ """
+ list.__init__(self) # Initialize the base class.
+
+ self._name = index_name # FIXME: The index's name for use in/by ...
+ self._current_matchers = list(Index._matchers)
+
+ self._indentation_level = {
+ '': 0,
+ }
+
+ self._elements = Stack() # A stack of elements used when parsing.
+ #self.__entries = [] # A list of all the entries in the index.
+
+ # Accessors for the 'name' property (_-prefixed to force access
+ # through the property):
+ def _get_name(self):
+ return self._name
+
+ def _set_name(self, name):
+ self._name = name
+
+ name = property(_get_name, _set_name, None, 'The name of the index.')
+
+ def handle_meta_directive(self, attribute=None, value=None, context=None,
+ alias=None):
+ if attribute:
+ # Set an attribute describing this index (e.g., its name).
+ logging.info('Setting the index\'s %s=%s.', attribute, repr(value))
+ setattr(self, attribute, value)
+ elif context:
+ self._context = context[1:-1] # Remove pre and post '*'s.
+ logging.info('Switching context to: "%s"', self._context, )
+ self._matchers[-1] = self._context_matcher[self._context]
+ self._entry_class = self._context_class[self._context]
+
+ def handle_comment(self, alias=None):
+ """Do nothing. (Yes, seriously.)
+ """
+ pass
+
+ def _get_indentation_level(self, indent):
+ if indent == None:
+ indent = ''
+
+ # Make sure that indentation by tabs are expanded.
+ indent = indent.expandtabs()
+
+ if indent not in self._indentation_level:
+ if len(indent) < max(len(key) for key in self._indentation_level):
+ # The indentation levels should be monotonically
+ # increasing. The first time an indentation level is
+ # used, it is also defined and available for the rest
+ # of the session.
+ raise IndentationError('On line %d in file "%s:\n%s' \
+ % ((self._line_num + 1),
+ self._filename,
+ self._current_line))
+ else:
+ self._indentation_level[indent] = len(self._indentation_level)
+
+ return self._indentation_level[indent]
+
+ def _get_current_parent(self):
+ if self._elements:
+ return self._elements[-1].identity
+ else:
+ None
+
+ def handle_entry(self, indent=None, **rest):
+ indent_level = self._get_indentation_level(indent)
+
+ # Reduce the _ELEMENTS stack until its length equals the
+ # current INDENT_LEVEL.
+ while indent_level < len(self._elements):
+ self._elements.pop()
+
+ # Push the new entry onto the stack. The current _ENTRY_CLASS
+ # is set by the different meta directives (see
+ # handle_meta_directive()).
+ self._elements.push(self._entry_class(index=self,
+ parent=self._get_current_parent(),
+ indent_level=indent_level,
+ **rest))
+
+ _match_handler = {
+ _meta_directive_re: handle_meta_directive,
+ _pure_comment_re: handle_comment,
+ _concept_re: handle_entry,
+ _acronym_re: handle_entry,
+ _person_re: handle_entry,
+ }
+
+ @staticmethod
+ def syntax_error(filename, line_number, message):
+ logging.error('Syntax error on line %d in file "%s": %s',
+ line_number, filename, message)
+ sys.exit(1)
+
+ @classmethod
+ def from_file(cls, filename):
+ self = cls()
+
+ self._filename = filename
+
+ logging.info('Reading index definitions from "%s".', filename)
+
+ stream = open(filename, 'r')
+
+ for self._line_num, line in enumerate(stream):
+ # Ignore whitespace-only lines.
+ if line.isspace():
+ continue
+
+ # Keep a copy of the original line (for error messages,
+ # etc.)
+ self._current_line = line
+
+ # Remove trailing white-space.
+ line = line.rstrip()
+
+ # Find out whether the entry is an alias for another
+ # entry.
+ for match in self._alias_re.finditer(line):
+ line, alias = map(match.group, ['entry', 'alias'])
+ break
+ else:
+ alias = None
+
+ # Parse the line trying different matchers. Quit trying
+ # after the first applicable matcher is used.
+ for matcher in self._matchers:
+ if matcher is None:
+ self.syntax_error(filename, (self._line_num + 1),
+ "Encountered an entry, but no " \
+ "current entry type " \
+ "('*ACRONYMS*', '*CONCEPTS*', or " \
+ "'*PERSONS*') has been defined.")
+
+ for match in matcher.finditer(line):
+ # Call the appropriate handler, given the current
+ # context.
+ try:
+ self._match_handler[matcher](self, alias=alias,
+ **match.groupdict())
+ except entry.MissingAcronymExpansionError, e:
+ self.syntax_error(filename, (self._line_num + 1),
+ 'Missing full-form expansion for ' \
+ 'acronym definition of "%s".' \
+ % (e.message, ))
+ except:
+ raise
+ break # To avoid the else clause.
+ else:
+ continue # The matcher didn't apply, so
+ # let's try the next one.
+
+ break # Skip the remaining matchers.
+
+ stream.close() # Explicitly close the input stream.
+
+ return self
+
+ def __str__(self):
+ stream = StringIO()
+ previous_type = None
+ for entry in self:
+ if type(entry) != previous_type:
+ print >> stream, entry.get_plain_header()
+
+ print >> stream, entry
+
+ previous_type = type(entry)
+
+ string = stream.getvalue()
+ stream.close()
+
+ return string
+
+ def generate_reference_index(self):
+ references = defaultdict(set)
+
+ for entry in self:
+ for inflection, phrase in entry.reference_short.iteritems():
+ if phrase:
+ references[phrase].add(entry)
+
+ ambiguous_short_references = [
+ entries
+ for phrase, entries in sorted(references.iteritems())
+ if len(entries) > 1]
+
+ for entries in ambiguous_short_references:
+ logging.warn('The short-form references for the entries\n'
+ '%s\nare the same (%s) and hence ambiguous. '
+ 'Hence, the entries must be referred to using '
+ 'the full form references.',
+ '\nand\n'.join(str(entry) for entry in entries),
+ list(entries)[0].reference_short['singular'])
+
+ ambiguous_short_references = set(flatten(ambiguous_short_references))
+
+ references = dict()
+
+ for entry in self:
+ for inflection, phrase in entry.reference.iteritems():
+ if phrase in references:
+ logging.error('Duplicate full-form reference "%s" ' \
+ 'detected. Please correct the file "%s".', \
+ phrase, self._filename)
+ sys.exit(1)
+
+ references[phrase] = (entry, inflection)
+
+ if entry not in ambiguous_short_references:
+ for inflection, phrase in entry.reference_short.iteritems():
+ references[phrase] = (entry, inflection)
+
+ use_short_reference = True
+ else:
+ use_short_reference = False
+
+ entry.use_short_reference = use_short_reference
+
+ self.references = references
+
+ def get_auxiliary_entries(self, filename):
+ for i, line in enumerate(open(filename, 'r')):
+ line_number = (i + 1)
+
+ # Handle recursive \@include-statements within .aux files.
+ match = self._aux_input_re.match(line.rstrip())
+ if match:
+ input_filename = match.group('filename')
+
+ logging.info('Will include "%s"', (input_filename, ))
+
+ for result in self.get_auxiliary_entries(input_filename):
+ yield result
+
+ continue
+
+ match = self._intex_re.match(line.rstrip())
+ if not match:
+ yield (filename, line_number, False, line)
+ continue
+ key, page = match.groups()
+
+ # Keep track of any page-number typesetting hints.
+ parts = escape_aware_rsplit(key, '|', 1)
+
+ if len(parts) > 1:
+ key, typeset_page_number = parts
+ typeset_page_number = '|' + typeset_page_number
+ else:
+ typeset_page_number = ''
+
+ # Do _not_ try to convert page into an integer, it may
+ # occurr as roman numerals.
+ yield (filename, line_number, True,
+ (key, page, typeset_page_number))
+
+ def interpret_auxiliary(self, auxiliary_filename, internal_file,
+ index_file):
+ not_found = set()
+ already_output = set()
+ already_handled = set()
+
+ for filename, line_number, is_concept, data \
+ in self.get_auxiliary_entries(auxiliary_filename):
+ if not is_concept:
+ logging.debug('Ignoring non-concept: "%s" on line %d in "%s".',
+ data.rstrip(), line_number, filename)
+ continue
+
+ key, page, typeset_page_number = data
+
+ logging.debug('Handling reference "%s" on page %s.', key, page)
+
+ if key not in self.references:
+ if key.lower() in self.references:
+ key = key.lower()
+ logging.debug('lowered key: %s', key)
+ else:
+ not_found.add((key, page))
+ continue
+
+ concept, inflection = self.references[key]
+ logging.debug('Reference expanded to %s (inflection=%s)',
+ repr(concept), inflection)
+
+ for line in concept.generate_index_entries(page,
+ typeset_page_number):
+ if line not in already_output:
+ print >> index_file, line
+ already_output.add(line)
+
+ if key not in already_handled:
+ for line in concept.generate_internal_macros(inflection):
+ if line not in already_output:
+ print >> internal_file, line
+ already_output.add(line)
+
+ already_handled.add(key)
+
+ return not_found
+
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ pass
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/paren_parser.py b/support/intex/lib/intex/paren_parser.py
new file mode 100644
index 0000000000..7617009da1
--- /dev/null
+++ b/support/intex/lib/intex/paren_parser.py
@@ -0,0 +1,209 @@
+#! /usr/bin/python
+# -*- coding: latin-1 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__revision__ = "$Rev$"
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+
+import re
+
+def cartesian(*sequences):
+ """Returns the cartesian product of the SEQUENCES.
+ """
+ if len(sequences) == 0:
+ yield []
+ else:
+ head, tail = sequences[:-1], sequences[-1]
+ tail = list(tail)
+ for x in cartesian(*head):
+ for y in tail:
+ yield x + [y]
+
+class UnexpectedClosingError(ValueError):
+ """Error indicating that an ParenParser detected an unexpected
+ closing.
+ """
+ pass
+
+class ParenParser(object):
+ ESCAPE_TOKEN = '\\'
+
+ __default_paren_pair = {
+ '(': ')',
+ '{': '}',
+ '[': ']',
+ }
+
+ def __init__(self, paren_pair=__default_paren_pair):
+ self.__paren_pair = paren_pair
+ self.__closings = set(self.__paren_pair.values())
+
+ def __reset(self):
+ self.__consecutive_escapes = 0 # The number of consecutive escapes.
+ self.__opened_scopes = [] # A stack of opened scopes.
+ self.__expected_closing = None
+
+ def __update_expected_closing(self):
+ if self.__opened_scopes:
+ most_recent_opening = self.__opened_scopes[-1][0]
+ self.__expected_closing = self.__paren_pair[most_recent_opening]
+ else:
+ self.__expected_closing = None
+
+ def get_scope_spans(self, string, start_index=0):
+ self.__reset()
+
+ for i in xrange(start_index, len(string)):
+ token = string[i]
+
+ if token == self.ESCAPE_TOKEN:
+ self.__consecutive_escapes += 1
+ continue
+
+ # If the current TOKEN is not escaped; that is, the
+ # __CONSECUTIVE_ESCAPES is zero or odd (bit-wise "& 1")...
+ if not (self.__consecutive_escapes & 1):
+ # If the TOKEN is an expected closing...
+ if token == self.__expected_closing:
+ # Yield the start and end index for the closing
+ # scope.
+ yield self.__opened_scopes.pop()[1], (i + 1)
+
+ self.__update_expected_closing()
+
+ # If TOKEN is an unexpected closing...
+ elif token in self.__closings:
+ j = self.__opened_scopes[-1][1]
+ reason = "Received unexpected closing '%s' at " \
+ "input position %d. " \
+ "Input (from position %d):\n%s\n" \
+ "Expected closing was '%s'." \
+ % (token, i, j, string[j:(i + 1)],
+ self.__expected_closing)
+ raise UnexpectedClosingError, reason
+
+ # If TOKEN is a legal opening token...
+ elif (token in self.__paren_pair):
+ self.__opened_scopes.append((token, i))
+ self.__update_expected_closing()
+
+ # Reset the escape-token counter.
+ self.__consecutive_escapes = 0
+
+ @staticmethod
+ def filter_outer_scopes(scopes):
+ """Removes scopes that appear inside other scopes. Hence, only
+ the outermost scopes will be returned.
+
+ Example:
+ >>> parenparser.remove_inner_scopes([(2, 5), (3, 4), (6, 12),
+ ... (7, 11), (8, 10)])
+ [(2, 5), (6, 12)]
+ """
+ scopes = sorted(scopes)
+ keep = []
+
+ for n, (i, j) in enumerate(scopes):
+ if n == 0:
+ pass # Must define an outer scope.
+ elif j < keep[-1][-1]:
+ continue
+
+ keep.append((i, j))
+
+ return keep
+
+ def split(self, string, separator=None, maxsplit=None):
+ """Return a list of the words in the string STRING, using
+ SEPARATOR as the delimiter string, but scopes defined by
+ parenthetical tokens are not split. If MAXSPLIT is given, at
+ most MAXSPLIT splits are done. If SEPARATOR is not specified
+ or is None, any whitespace string is a separator.
+
+ Please note: The MAXSPLIT argument is not honored yet.
+ """
+ # Make sure only outermost scopes are considered.
+ indices = self.filter_outer_scopes(self.get_scope_spans(string))
+
+ # If no parenthetical scopes were detected, there are no
+ # scopes to honor.
+ if not indices:
+ return string.split(separator)
+
+ # The following is added to avoid any special-case handling
+ # after the for-loop below.
+ if indices[-1][-1] < len(string):
+ indices.append((-1, None))
+
+ k = None
+ result = []
+
+ for i, j in indices:
+ parts = filter(''.__ne__, string[k:i].split(separator)) \
+ + [string[i:j]]
+
+ first_part = parts[0]
+ if result and (k is not None) and (first_part[0] == string[k]):
+ result[-1] += first_part
+ else:
+ result.append(first_part)
+
+ if len(parts) > 1:
+ result.extend(parts[1:-1])
+
+ last_part = parts[-1]
+ if result[-1][-1] == string[i - 1]:
+ result[-1] += last_part
+ else:
+ result.append(last_part)
+
+ k = j
+
+ return result
+
+ def strip(self, string, valid_left_sides=''.join(__default_paren_pair)):
+ if (len(string) > 1) \
+ and (string[0] in valid_left_sides) \
+ and (string[-1] in self.__default_paren_pair[string[0]]):
+ return string[1:-1]
+ else:
+ return string
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ p = ParenParser()
+
+ for string in [
+ '',
+ 'a b c',
+ '()',
+ '(abc)',
+ '(abc) def',
+ 'abc(def)ghi (jkl) mno(pqr) stu',
+ '(abc(def)ghi (jkl) mno(pqr) stu)',
+ '()abc(def)ghi (jkl) mno(pqr) stu',
+ 'abc(def)ghi (jkl) mno(pqr) stu()',
+ 'abc(def)ghi (jkl) mno(pqr) stu (vwx) ()',
+ ]:
+ print '("%s",\n %s),' % (string, p.split(string))
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/person_entry.py b/support/intex/lib/intex/person_entry.py
new file mode 100644
index 0000000000..afa7833f3d
--- /dev/null
+++ b/support/intex/lib/intex/person_entry.py
@@ -0,0 +1,172 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+from utils import escape_aware_split
+from entry import Entry
+import string
+
+class PersonEntry(Entry):
+ _generated_fields = [
+ # The values of REFERENCE are how this entry will be referred
+ # to in the text (\co{<reference>}).
+ 'reference',
+ 'reference_short',
+ # The values of TYPESET_IN_TEXT determines how the entry will
+ # be typeset in the text. If it was referred to in its plural
+ # form, the entry typeset will also be typeset with plural
+ # inflection.
+ 'typeset_in_text_first',
+ 'typeset_in_text_last',
+ # The values of TYPESET_IN_INDEX defines how the entry will be
+ # typeset in the index.
+ 'typeset_in_index',
+ ]
+
+ # Different constants used for output formatting.
+ _label_width = len('typeset_in_text_first')
+ _column_width = 40
+ _line_format = '%(_bold_on)s%%%(_label_width)ds%(_bold_off)s ' \
+ '%%-%(_column_width)ds'
+
+ _sortkey_remove = [',', '\\', '"', "'", '{', '}', ]
+
+ def __init__(self, index, parent, initials=None, name=None,
+ index_as=None, sort_as=None, meta=None, alias=None,
+ **rest):
+
+ for attribute in self._generated_fields:
+ setattr(self, attribute, dict.fromkeys([Entry.INFLECTION_NONE,]))
+
+ Entry.__init__(self, index, parent, meta)
+
+ # If this entry is an alias for another entry, indicate that
+ # here.
+ self.alias = alias
+
+ names = escape_aware_split(name, ',')
+
+ if len(names) > 1:
+ last_name, first_name = names
+ else:
+ last_name, first_name = names[0], ''
+
+ # Remove any preceding commas (',') and surrounding
+ # whitespace.
+ first_name = first_name.lstrip(',').strip()
+
+ field_variable_map = [
+ ('reference', 'reference'),
+ ('typeset_in_text_first', 'first_name'),
+ ('typeset_in_text_last', 'last_name'),
+ ('typeset_in_index', 'typeset_formal'),]
+
+ # Prepare the different local variables.
+ reference = initials
+
+ if first_name:
+ typeset_formal = '%s, %s' % (last_name, first_name)
+ else:
+ typeset_formal = last_name
+
+ for particle in ['the', 'von', 'van', 'van der']:
+ if first_name.endswith(particle):
+ last_name = ' '.join([first_name[-len(particle):], last_name])
+ first_name = first_name[:-len(particle)]
+ break # Will avoid the following else-clause.
+
+ variables = locals()
+
+ for field, variable in field_variable_map:
+ getattr(self, field)[Entry.INFLECTION_NONE] = variables[variable]
+
+ self.index_inflection = Entry.INFLECTION_NONE
+
+ def get_plain_header(self):
+ return self._line_format \
+ % ('', self.bold_it('value'.center(self._column_width)))
+
+ def __str__(self):
+ if self.alias:
+ alias_line = '\n' + self._line_format % ('alias', self.alias, )
+ else:
+ alias_line = ''
+
+ return '\n'.join([self._line_format \
+ % (attribute,
+ getattr(self, attribute)['none'],
+ )
+ for attribute in self._generated_fields]) \
+ + alias_line
+
+ def generate_index_entries(self, page, typeset_page_number=''):
+ inflection = self.index_inflection
+
+ typeset_in_index = self.typeset_in_index[inflection]
+
+ # TODO: Handle this in a more proper manner. The use of
+ # uppercase and removal of commas was done for compatibility
+ # with the authorindex package.
+ # The original read: sort_as = typeset_in_index
+ #
+ table = string.maketrans('', '')
+ delete = ''.join(self._sortkey_remove)
+
+ sort_as = typeset_in_index.upper().translate(table, delete)
+
+ # For compatibility with the authorindex package:
+ last, rest = typeset_in_index.split(None, 1)
+ typeset_in_index = '%s %s' % (last, '~'.join(rest.split()), )
+
+ # If this is an alias entry, the index entries are affected.
+ # Generate the index entries accordingly.
+ if self.alias:
+ concept, _inflection = self.index.references[self.alias]
+ for entry in concept.generate_index_entries(page,
+ typeset_page_number):
+ yield entry
+
+ return # Skip the regular index entries.
+
+ yield '\indexentry{%(sort_as)s@%(typeset_in_index)s' \
+ '%(typeset_page_number)s}{%(page)s}' \
+ % locals()
+
+ def generate_internal_macros(self, inflection):
+ type_name = self.get_entry_type()
+ reference = self.reference[inflection]
+ typeset_in_text_first = self.typeset_in_text_first[inflection]
+ typeset_in_text_last = self.typeset_in_text_last[inflection]
+
+ yield '\\new%(type_name)s{%(reference)s}' \
+ '{%(typeset_in_text_first)s}' \
+ '{%(typeset_in_text_last)s}' \
+ % locals()
+
+ if self.use_short_reference and self.reference_short[inflection]:
+ reference = self.reference_short[inflection]
+
+ yield '\\new%(type_name)s{%(reference)s}{%(typeset_in_text)s}' \
+ '{XC.1}' \
+ % locals()
diff --git a/support/intex/lib/intex/stack.py b/support/intex/lib/intex/stack.py
new file mode 100644
index 0000000000..7f654eed8b
--- /dev/null
+++ b/support/intex/lib/intex/stack.py
@@ -0,0 +1,38 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+class Stack(list):
+ def push(self, element):
+ """Push an element to the stack.
+ """
+ list.append(self, element)
+
+def main():
+ """Module mainline (for standalone execution)."""
+ pass
+
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/test_paren_parser.py b/support/intex/lib/intex/test_paren_parser.py
new file mode 100644
index 0000000000..df5a620999
--- /dev/null
+++ b/support/intex/lib/intex/test_paren_parser.py
@@ -0,0 +1,148 @@
+#! /usr/bin/python
+# -*- coding: latin-1 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__revision__ = "$Rev$"
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+
+import paren_parser
+import unittest
+
+
+class SimpleParenParserTestCase(unittest.TestCase):
+ matching_pairs = [
+ ('(', ')'),
+ ('[', ']'),
+ ('{', '}'),
+ ]
+
+ closing = dict(matching_pairs)
+
+ def setUp(self):
+ self.parser = paren_parser.ParenParser()
+
+ def get_all_indices(self, string):
+ return list(self.parser.get_scope_spans(string))
+
+class NonMatchingClosingTestCase(SimpleParenParserTestCase):
+ def runTest(self):
+ # Test all simple combinations of non-matching closing
+ # parenthesis. For example: '(}' and '(})'
+ for left, right in self.matching_pairs:
+ for ignore, token in self.matching_pairs:
+ if token == right:
+ continue
+
+ failing = '%(left)s%(token)s' % locals()
+ self.assertRaises(paren_parser.UnexpectedClosingError,
+ self.get_all_indices, failing)
+
+ failing += right
+ self.assertRaises(paren_parser.UnexpectedClosingError,
+ self.get_all_indices, failing)
+
+class NestedScopesTestCase(SimpleParenParserTestCase):
+ def runTest(self):
+ lefts = [left for left, right in self.matching_pairs]
+ levels = len(lefts)
+
+ for combo in paren_parser.cartesian(lefts, lefts, lefts):
+ indices = []
+ for i, opening in enumerate(reversed(combo)):
+ combo.append(self.closing[opening])
+ indices.append(((levels - (i + 1)), (levels + (i + 1))))
+
+ self.assertEqual(indices,
+ list(self.get_all_indices(''.join(combo))))
+
+class LaTeXTestCase(SimpleParenParserTestCase):
+ def runTest(self):
+ # Find all the scopes in each string, innermost scopes first.
+ for string, scopes in [
+ ('H2O@H$_{2}$O', ['{2}']),
+ ('ABC@($a$, {$b$^$c$})', ['{$b$^$c$}', '($a$, {$b$^$c$})']),
+ ('LaTeX@{\LaTeX}', ['{\LaTeX}']),
+ ]:
+ for k, (i, j) in enumerate(self.get_all_indices(string)):
+ self.assertEqual(scopes[k], string[i:j])
+
+class WhitespaceSplitTestCase(SimpleParenParserTestCase):
+ def runTest(self):
+ # Find all the scopes in each string, innermost scopes first.
+ for separator, string, parts in [
+ # Default whitespace-based splitting.
+ (None, '', []),
+ (None, 'abc def ghi', ['abc', 'def', 'ghi']),
+ (None, '()', ['()']),
+ (None, '(abc)', ['(abc)']),
+ (None, '(abc) def', ['(abc)', 'def']),
+ (None, 'abc(def)ghi (jkl) mno(pqr) stu',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu']),
+ (None, '(abc(def)ghi (jkl) mno(pqr) stu)',
+ ['(abc(def)ghi (jkl) mno(pqr) stu)']),
+ (None, '()abc(def)ghi (jkl) mno(pqr) stu',
+ ['()abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu']),
+ (None, 'abc(def)ghi (jkl) mno(pqr) stu()',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu()']),
+ (None, 'abc(def)ghi (jkl) mno(pqr) stu (vwx) ()',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu', '(vwx)', '()']),
+ ]:
+ self.assertEqual(self.parser.split(string, separator), parts)
+
+class TokenSplitTestCase(SimpleParenParserTestCase):
+ def runTest(self):
+ for separator, string, parts in [
+ # '@'-based splitting.
+ ('@', '', ['']),
+ ('@', 'abc@def@ghi', ['abc', 'def', 'ghi']),
+ ('@', '()', ['()']),
+ ('@', '(abc)', ['(abc)']),
+ ('@', '(abc)@def', ['(abc)', 'def']),
+ ('@', 'abc(def)ghi@(jkl)@mno(pqr)@stu',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu']),
+ ('@', '(abc(def)ghi@(jkl)@mno(pqr)@stu)',
+ ['(abc(def)ghi@(jkl)@mno(pqr)@stu)']),
+ ('@', '()abc(def)ghi@(jkl)@mno(pqr)@stu',
+ ['()abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu']),
+ ('@', 'abc(def)ghi@(jkl)@mno(pqr)@stu()',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu()']),
+ ('@', 'abc(def)ghi@(jkl)@mno(pqr)@stu@(vwx)@()',
+ ['abc(def)ghi', '(jkl)', 'mno(pqr)', 'stu', '(vwx)', '()']),
+ ]:
+ self.assertEqual(self.parser.split(string, separator), parts)
+
+class ParenParserTestSuite(unittest.TestSuite):
+ def __init__(self):
+ unittest.TestSuite.__init__(self, [
+ NonMatchingClosingTestCase(),
+ NestedScopesTestCase(),
+ LaTeXTestCase(),
+ WhitespaceSplitTestCase(),
+ TokenSplitTestCase(),
+ ])
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ suite = ParenParserTestSuite()
+ unittest.TextTestRunner(verbosity=2).run(suite)
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/lib/intex/utils.py b/support/intex/lib/intex/utils.py
new file mode 100644
index 0000000000..8512549ba8
--- /dev/null
+++ b/support/intex/lib/intex/utils.py
@@ -0,0 +1,108 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@VERSION@"
+
+from itertools import chain
+from string import whitespace
+
+ESCAPE_TOKEN = '\\'
+
+def flatten(sequence):
+ """Returns a flattened list.
+ """
+ return list(chain(*sequence))
+
+def _init_escape_aware_split(delimiter):
+ if delimiter is None:
+ delimiter = whitespace
+ lookahead = 1
+ else:
+ lookahead = len(delimiter)
+
+ return delimiter, lookahead, list(), (None, None)
+
+def escape_aware_split(string, delimiter=None, maxsplit=None):
+ delimiter, lookahead, parts, (i, j) = _init_escape_aware_split(delimiter)
+
+ for k in xrange((len(string) - (lookahead - 1))):
+ token = string[k:(k + lookahead)]
+
+ if (token == delimiter) or (token in delimiter):
+ # Found a delimiter. Check the number of contiguous
+ # escape tokens in front of it (right to left).
+ for l in xrange((k - 1), -1, -1):
+ if string[l] != ESCAPE_TOKEN:
+ break
+
+ escapes = (k - l - 1)
+
+ if not (escapes & 1): # Odd number of escapes?
+ # Split here.
+ parts.append(string[i:k])
+
+ i = (k + lookahead) # Skip the delimiter token.
+
+ if len(parts) == maxsplit:
+ break
+
+ parts.append(string[i:j])
+
+ return parts
+
+def escape_aware_rsplit(string, delimiter=None, maxsplit=None):
+ delimiter, lookahead, parts, (i, j) = _init_escape_aware_split(delimiter)
+
+ for k in xrange((len(string) - lookahead), -1, -1):
+ token = string[k:(k + lookahead)]
+
+ if (token == delimiter) or (token in delimiter):
+ # Found a delimiter. Check the number of contiguous
+ # escape tokens in front of it (right to left).
+ for l in xrange((k - 1), -1, -1):
+ if string[l] != ESCAPE_TOKEN:
+ break
+
+ escapes = (k - l - 1)
+
+ if not (escapes & 1): # Odd number of escapes?
+ # Split here.
+ parts.append(string[k + lookahead:j])
+
+ j = k # Skip the delimiter token.
+
+ if len(parts) == maxsplit:
+ break
+
+ parts.append(string[i:j]) # Add the rest, if applicable.
+ parts.reverse() # Reverse the list in-place.
+
+ return parts
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ pass
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/pack_next_release.sh b/support/intex/pack_next_release.sh
new file mode 100755
index 0000000000..8e151895c6
--- /dev/null
+++ b/support/intex/pack_next_release.sh
@@ -0,0 +1,10 @@
+#! /bin/bash
+#
+# Copyright (C) 2009 by Martin Thorsen Ranang
+#
+
+make next_release
+make tag_release
+svn update
+svn2cl
+make deb_sign
diff --git a/support/intex/release.sh b/support/intex/release.sh
new file mode 100755
index 0000000000..c1c05c2dd5
--- /dev/null
+++ b/support/intex/release.sh
@@ -0,0 +1,5 @@
+#! /bin/bash
+#
+
+./bin/increase_release
+make deb_sign && sudo dpkg --purge intex && sudo dpkg --install $(ls -1 dist/*.deb |tail -1)
diff --git a/support/intex/rewritten.itx b/support/intex/rewritten.itx
new file mode 100644
index 0000000000..e9c2775d78
--- /dev/null
+++ b/support/intex/rewritten.itx
@@ -0,0 +1,118 @@
+% $Id$
+%
+% name=main
+% default_inflection=singular
+%
+% Copyright (C) 2007 by Martin Thorsen Ranang
+%
+
+% In general, to refer to the full-form of a concept, use the \cof
+% macro.
+%
+% *ACRONYMS*
+% SHORT FORM FULL FORM
+% - referred to as \co{DAG}
+% - sorted as "DAG" "directed acyclic graph"
+% - typeset as "DAG" "directed acyclic graph"
+DAG directed acyclic graph
+
+GNU GNU is not Unix
+ (-) OSs (-) operating systems :#+:#- OS - operating system
+
+% SHORT FORM FULL FORM
+% - referred to as \co{H2O}
+% - sorted as "H2O" "dihydrogen monoxide"
+% - typeset as "H$_{2}$O" "dihydrogen monoxide"
+H2O@H$_{2}$O dihydrogen monoxide
+
+% SHORT FORM FULL FORM
+% - referred to as \co{LL}
+% - sorted as "LL" "LaTeX Lover"
+% - typeset as "LL" "\LaTeX Lover"
+LL (LaTeX Lover)@{\LaTeX Lover}
+
+% SHORT FORM FULL FORM
+% - referred to as \co{WN20}
+% - sorted as "WN20" "WordNet 2.0"
+% - typeset as "WN 2.0" "WordNet 2.0"
+% Hence, the parentheses are used for keeping multiple words gathered.
+WN WordNet
+ WN20@(- 2.0) (-) version 2.0
+
+% SHORT FORM FULL FORM
+% - referred to as \co{XML}
+XML Extensible Markup Language
+% - referred to as \co{XML-format} \cof{XML-format}
+% - sorted as "XML, format" "XML, format"
+ - format
+% The resulting index should have the following entries:
+%
+% * Extensible Markup Language <pages>,
+% -format <pages>
+%
+% * XML, see Extensible Markup Language
+
+% *PEOPLE*
+JFK Kennedy, John Fitzgerald
+MLK King, Martin Luther
+M Madonna
+P Prince
+
+% *CONCEPTS*
+alphabet@(A\, {B}\, and C)
+homemade alphabet@(A\, {B}\, and C)
+homemade c\@rrot
+
+% The '#-' tells the mkintex that the entry is written with a singular
+% inflection.
+antonym :#-
+% An indented ':' tells that everything following it describes a
+% sub-concept of the nearest concept above with less indentation. The
+% '-' tells mkintex how both to index the concept (compact) and how to
+% combine the parent concept (represented by the '-') with the
+% specialization specified in the sub-entry to generate the strings
+% used for recognizing the concept.
+ not\-so\-direct -
+ direct (-)
+ indirect (-)
+ perhaps:#!
+antonymy
+ direct -
+ indirect -
+
+% The '#+' means that the given concept is inflected as a plural noun.
+buses :#+
+
+category
+ positive -
+% :hyper-
+
+cows :#+
+
+% For the following entries, the parenthesis surrounding each '-'
+% indicates that the part signified by - should be typeset in the text
+% only; hence, not in the index.
+example
+ positive (-)
+ negative (-)
+
+InTeX@{\InTeX}
+ - example@Xample
+
+katter@k4tt3r :#+:#katt@k4tt
+ku :#kuer
+
+LaTeX@{\LaTeX}
+ - macros :#+
+
+
+TeXnician@{\TeX}nician
+ -'s tool
+ smart\-ass -
+
+% Local Variables:
+% mode: latex
+% TeX-master: t
+% ispell-local-dictionary: "american"
+% mode: flyspell
+% End:
diff --git a/support/intex/setup.cfg b/support/intex/setup.cfg
new file mode 100644
index 0000000000..26bb724140
--- /dev/null
+++ b/support/intex/setup.cfg
@@ -0,0 +1,10 @@
+[install]
+prefix = /usr/local
+
+[bdist_rpm]
+packager = Martin Thorsen Ranang <mtr@ranang.org>
+vendor = Martin Thorsen Ranang <mtr@ranang.org>
+doc_files = ChangeLog
+ README
+ latex/intex.pdf
+group = Productivity/Publishing
diff --git a/support/intex/setup.cfg.in b/support/intex/setup.cfg.in
new file mode 100644
index 0000000000..220d35a007
--- /dev/null
+++ b/support/intex/setup.cfg.in
@@ -0,0 +1,10 @@
+[install]
+prefix = @prefix@
+
+[bdist_rpm]
+packager = Martin Thorsen Ranang <mtr@ranang.org>
+vendor = Martin Thorsen Ranang <mtr@ranang.org>
+doc_files = ChangeLog
+ README
+ latex/intex.pdf
+group = Productivity/Publishing
diff --git a/support/intex/setup.py b/support/intex/setup.py
new file mode 100644
index 0000000000..82bf0589cc
--- /dev/null
+++ b/support/intex/setup.py
@@ -0,0 +1,79 @@
+#! /usr/bin/python
+# -*- coding: latin-1 -*-
+# $Id$
+"""
+Copyright (C) 2007 by Martin Thorsen Ranang
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "1.8.0"
+
+from distutils.core import setup
+import os
+
+LONG_DESCRIPTION = """\
+A concept indexing and typesetting package for LaTeX.
+
+This package adds functionality to LaTeX that eases typesetting and
+indexing of phrases, acronyms, and names in a consistent manner
+throughout documents of arbitrary length.
+"""
+
+
+def isPackage(filename):
+ return (os.path.isdir(filename) and
+ os.path.isfile(os.path.join(filename, '__init__.py')))
+
+def packagesFor(filename, basePackage=""):
+ """Find all packages in filename.
+ """
+ set_of_packages = {}
+
+ for item in os.listdir(filename):
+ directory = os.path.join(filename, item)
+ if isPackage(directory):
+ if basePackage:
+ moduleName = '%s.%s' % (basePackage, item)
+ else:
+ moduleName = item
+
+ set_of_packages[moduleName] = directory
+ set_of_packages.update(packagesFor(directory, moduleName))
+
+ return set_of_packages
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ packages = packagesFor('lib')
+
+ author_name = __author__.split(' <')[0]
+ author_email = __author__.rsplit(' ')[-1]
+
+ if True:
+ setup(
+ name='intex',
+ version='1.8.0',
+ description='The InTeX Package',
+ long_description=LONG_DESCRIPTION,
+ license='LPPL',
+ author=author_name,
+ author_email=author_email,
+ url='http://www.ranang.org/projects/intex/',
+ package_dir=packages,
+ packages=packages.keys(),
+ scripts=[
+ 'src/mkintex',
+ ],
+ data_files=[
+ # TeX-package files:
+ ('share/texmf/tex/latex/intex',
+ ['latex/intex.sty', 'latex/intex.pdf']),
+ # Man pages, section 1:
+ ('share/man/man1', ['doc/mkintex.1.gz']),
+
+ ],
+ )
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/setup.py.in b/support/intex/setup.py.in
new file mode 100644
index 0000000000..aa7ab42570
--- /dev/null
+++ b/support/intex/setup.py.in
@@ -0,0 +1,79 @@
+#! /usr/bin/python
+# -*- coding: latin-1 -*-
+# $Id$
+"""
+Copyright (C) 2007 by Martin Thorsen Ranang
+"""
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+__revision__ = "$Rev$"
+__version__ = "@PACKAGE_VERSION@"
+
+from distutils.core import setup
+import os
+
+LONG_DESCRIPTION = """\
+A concept indexing and typesetting package for LaTeX.
+
+This package adds functionality to LaTeX that eases typesetting and
+indexing of phrases, acronyms, and names in a consistent manner
+throughout documents of arbitrary length.
+"""
+
+
+def isPackage(filename):
+ return (os.path.isdir(filename) and
+ os.path.isfile(os.path.join(filename, '__init__.py')))
+
+def packagesFor(filename, basePackage=""):
+ """Find all packages in filename.
+ """
+ set_of_packages = {}
+
+ for item in os.listdir(filename):
+ directory = os.path.join(filename, item)
+ if isPackage(directory):
+ if basePackage:
+ moduleName = '%s.%s' % (basePackage, item)
+ else:
+ moduleName = item
+
+ set_of_packages[moduleName] = directory
+ set_of_packages.update(packagesFor(directory, moduleName))
+
+ return set_of_packages
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ packages = packagesFor('lib')
+
+ author_name = __author__.split(' <')[0]
+ author_email = __author__.rsplit(' ')[-1]
+
+ if True:
+ setup(
+ name='@PACKAGE_NAME@',
+ version='@PACKAGE_VERSION@',
+ description='The InTeX Package',
+ long_description=LONG_DESCRIPTION,
+ license='LPPL',
+ author=author_name,
+ author_email=author_email,
+ url='http://www.ranang.org/projects/intex/',
+ package_dir=packages,
+ packages=packages.keys(),
+ scripts=[
+ 'src/mkintex',
+ ],
+ data_files=[
+ # TeX-package files:
+ ('share/texmf/tex/latex/@PACKAGE_NAME@',
+ ['latex/intex.sty', 'latex/intex.pdf']),
+ # Man pages, section 1:
+ ('share/man/man1', ['doc/mkintex.1.gz']),
+
+ ],
+ )
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/src/Makefile b/support/intex/src/Makefile
new file mode 100644
index 0000000000..d25ca16d56
--- /dev/null
+++ b/support/intex/src/Makefile
@@ -0,0 +1,395 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# src/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+
+pkgdatadir = $(datadir)/intex
+pkgincludedir = $(includedir)/intex
+pkglibdir = $(libdir)/intex
+pkglibexecdir = $(libexecdir)/intex
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/post-install.sh.in $(srcdir)/post-uninstall.sh.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = post-install.sh post-uninstall.sh
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(bindir)"
+SCRIPTS = $(bin_SCRIPTS)
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/mtr/projects/intex/missing --run aclocal-1.11
+AMTAR = $${TAR-tar}
+AUTOCONF = ${SHELL} /home/mtr/projects/intex/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/mtr/projects/intex/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/mtr/projects/intex/missing --run automake-1.11
+AWK = gawk
+CYGPATH_W = echo
+DEFS = -DPACKAGE_NAME=\"intex\" -DPACKAGE_TARNAME=\"intex\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"intex\ 1.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"intex\" -DVERSION=\"1.8.0\"
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LIBOBJS =
+LIBS =
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/mtr/projects/intex/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+PACKAGE = intex
+PACKAGE_BUGREPORT =
+PACKAGE_NAME = intex
+PACKAGE_STRING = intex 1.8.0
+PACKAGE_TARNAME = intex
+PACKAGE_URL =
+PACKAGE_VERSION = 1.8.0
+PATH_SEPARATOR = :
+PYTHON = /usr/bin/python
+PYTHON_EXEC_PREFIX = ${exec_prefix}
+PYTHON_PLATFORM = linux2
+PYTHON_PREFIX = ${prefix}
+PYTHON_VERSION = 2.7
+SET_MAKE =
+SHELL = /bin/bash
+STRIP =
+VERSION = 1.8.0
+abs_builddir = /home/mtr/projects/intex/src
+abs_srcdir = /home/mtr/projects/intex/src
+abs_top_builddir = /home/mtr/projects/intex
+abs_top_srcdir = /home/mtr/projects/intex
+am__leading_dot = .
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build_alias =
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host_alias =
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/mtr/projects/intex/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgpyexecdir = ${pyexecdir}/intex
+pkgpythondir = ${pythondir}/intex
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+pyexecdir = ${exec_prefix}/lib/python2.7/dist-packages
+pythondir = ${prefix}/lib/python2.7/dist-packages
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../
+top_builddir = ..
+top_srcdir = ..
+bin_SCRIPTS = mkintex
+CLEANFILES = $(bin_SCRIPTS)
+do_subst = sed -e 's,[@]datadir[@],$(datadir),g' \
+ -e 's,[@]PYTHON[@],$(PYTHON),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
+ -e 's,[@]VERSION[@],$(VERSION),g'
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+post-install.sh: $(top_builddir)/config.status $(srcdir)/post-install.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+post-uninstall.sh: $(top_builddir)/config.status $(srcdir)/post-uninstall.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+install-binSCRIPTS: $(bin_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n' \
+ -e 'h;s|.*|.|' \
+ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+ if (++n[d] == $(am__install_max)) { \
+ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+ else { print "f", d "/" $$4, $$1 } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+ } \
+ ; done
+
+uninstall-binSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 's,.*/,,;$(transform)'`; \
+ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(SCRIPTS)
+installdirs:
+ for dir in "$(DESTDIR)$(bindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-binSCRIPTS
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binSCRIPTS
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-binSCRIPTS install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am uninstall uninstall-am uninstall-binSCRIPTS
+
+
+mkintex: mkintex.py Makefile
+ $(do_subst) <$< >$@
+ chmod +x $@
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/src/Makefile.am b/support/intex/src/Makefile.am
new file mode 100644
index 0000000000..d80c098482
--- /dev/null
+++ b/support/intex/src/Makefile.am
@@ -0,0 +1,12 @@
+
+bin_SCRIPTS = mkintex
+CLEANFILES = $(bin_SCRIPTS)
+
+do_subst = sed -e 's,[@]datadir[@],$(datadir),g' \
+ -e 's,[@]PYTHON[@],$(PYTHON),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
+ -e 's,[@]VERSION[@],$(VERSION),g'
+
+mkintex: mkintex.py Makefile
+ $(do_subst) <$< >$@
+ chmod +x $@
diff --git a/support/intex/src/Makefile.in b/support/intex/src/Makefile.in
new file mode 100644
index 0000000000..029c1035dc
--- /dev/null
+++ b/support/intex/src/Makefile.in
@@ -0,0 +1,395 @@
+# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/post-install.sh.in $(srcdir)/post-uninstall.sh.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = post-install.sh post-uninstall.sh
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(bindir)"
+SCRIPTS = $(bin_SCRIPTS)
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PYTHON = @PYTHON@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+bin_SCRIPTS = mkintex
+CLEANFILES = $(bin_SCRIPTS)
+do_subst = sed -e 's,[@]datadir[@],$(datadir),g' \
+ -e 's,[@]PYTHON[@],$(PYTHON),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
+ -e 's,[@]VERSION[@],$(VERSION),g'
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+post-install.sh: $(top_builddir)/config.status $(srcdir)/post-install.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+post-uninstall.sh: $(top_builddir)/config.status $(srcdir)/post-uninstall.sh.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+install-binSCRIPTS: $(bin_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n' \
+ -e 'h;s|.*|.|' \
+ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+ if (++n[d] == $(am__install_max)) { \
+ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+ else { print "f", d "/" $$4, $$1 } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+ } \
+ ; done
+
+uninstall-binSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 's,.*/,,;$(transform)'`; \
+ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(SCRIPTS)
+installdirs:
+ for dir in "$(DESTDIR)$(bindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-binSCRIPTS
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binSCRIPTS
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic distclean \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-binSCRIPTS install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am uninstall uninstall-am uninstall-binSCRIPTS
+
+
+mkintex: mkintex.py Makefile
+ $(do_subst) <$< >$@
+ chmod +x $@
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/support/intex/src/mkintex b/support/intex/src/mkintex
new file mode 100755
index 0000000000..8a52a92bdb
--- /dev/null
+++ b/support/intex/src/mkintex
@@ -0,0 +1,215 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+from __future__ import with_statement
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__version__ = "1.8.0"
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+
+from contextlib import nested
+from itertools import count, imap
+
+import logging
+import optparse
+import os
+import re
+import sys
+
+from intex.config import INTEX_DEFAULT_INDEX, INTEX_INPUT_EXT, INTEX_OUTPUT_EXT
+
+from intex.index import Index
+
+def parse_command_line(command_line_options, usage):
+ """Parse the command line according to the possible
+ COMMAND_LINE_OPTIONS.
+ """
+ license_notice = """
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by Martin Thorsen Ranang."""
+ parser = optparse.OptionParser(usage=usage,
+ version='%%prog %s %s' % (__version__,
+ license_notice))
+ for option, description in command_line_options:
+ parser.add_option(*option, **description)
+
+ # Parse the command line.
+ return parser.parse_args()
+
+
+def resolve_auxiliary_and_args(args):
+ """Resolve the name of the current LaTeX auxiliary file (.aux)
+ based on the supplied arguments and the current working directory.
+ """
+ aux_re = re.compile('^.*\.aux$', re.IGNORECASE)
+ auxiliary = [arg for arg in args
+ if aux_re.match(arg) and os.path.exists(arg)]
+ args = [arg for arg in args if arg not in auxiliary]
+
+ attempts = count(-2)
+
+ while attempts.next():
+ if len(auxiliary) > 1:
+ logging.error('Please explicitly specify the ' \
+ 'LaTeX auxiliary (.aux) file to use.')
+ sys.exit(1)
+
+ elif not auxiliary:
+ auxiliary = ['%s.aux' % (arg) for arg in args
+ if os.path.exists('%s.aux' % (arg))]
+ args = [arg for arg in args if '%s.aux' % (arg) not in auxiliary]
+
+ else:
+ auxiliary = auxiliary[0]
+ break
+
+ return auxiliary, args
+
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ command_line_options = [
+ (['-D', '--debug'],
+ {'dest': 'debug',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'whether or not to output debug information'}),
+ (['-V', '--verbose'],
+ {'dest': 'verbose',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'whether or not to output verbose information'}),
+ (['-I', '--only-build-index'],
+ {'dest': 'only_build_index',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'only build the internal model of the index'}),
+ (['-O', '--ito-file'],
+ {'dest': 'ito_filename',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output the new internal InTeX information to FILE ' \
+ '(default: %default)'}),
+ (['-o', '--index-file'],
+ {'dest': 'index_filename',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output the new indexing information to FILE ' \
+ '(default: %default)'}),
+ (['-a', '--acrodef-output'],
+ {'dest': 'acrodef_output',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output acronym definitions to FILE ' \
+ '(default: %default)'}),
+ (['-p', '--persondef-output'],
+ {'dest': 'persondef_output',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output (person) name definitions to FILE ' \
+ '(default: %default)'}),
+ ]
+
+ # Parse the command line options.
+ options, args = parse_command_line(command_line_options,
+ usage='%prog [options] ' \
+ '<index> [index ...]',)
+
+ # Sort out the name for the basic log.
+ logging.root.name = os.path.basename(__file__)
+
+ log_level = None
+
+ if options.verbose:
+ log_level = logging.INFO
+ if options.debug:
+ log_level = logging.DEBUG
+
+ # Configure the logging module.
+ logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s',
+ level=log_level)
+
+ auxiliary, args = resolve_auxiliary_and_args(args)
+ if not auxiliary:
+ logging.warning('No LaTeX auxiliary file specified; exiting.')
+ sys.exit(1)
+
+ if options.index_filename is None:
+ logging.warning('No output index file specified; exiting.')
+ sys.exit(1)
+
+ if len(args) == 0:
+ suffix_re = re.compile('^.*\.%s$' % (INTEX_INPUT_EXT))
+
+ filenames = [filename
+ for filename in os.listdir(os.getcwd())
+ if suffix_re.match(filename)]
+ else:
+ filenames = args
+
+ # If no ITO file was explicitly stated, deduce the implied name.
+ if options.ito_filename is None:
+ options.ito_filename = (os.path.splitext(auxiliary)[0] \
+ + os.path.extsep + 'ito')
+
+ for filename in filenames:
+ if not os.path.exists(filename):
+ logging.error('Input file "%s" not found', filename)
+ sys.exit(1)
+
+ if options.verbose:
+ logging.info('Will use "%s" as (main) LaTeX auxiliary file', auxiliary)
+ logging.info('Will use InTeX input files: %s',
+ ', '.join(imap('"%s"'.__mod__, filenames)))
+
+ # Instatiate one Index object per file specified on the command
+ # line.
+ logging.info('Generating index...')
+ indices = [Index.from_file(filename) for filename in filenames]
+
+ # Generate all reference indices.
+ for index in indices:
+ index.generate_reference_index()
+
+ logging.info('... done (index generated).')
+
+ if options.debug:
+ for index in indices:
+ logging.debug('\n%s', index)
+
+ if options.only_build_index:
+ return
+
+ with nested(open(options.ito_filename, 'w'),
+ open(options.index_filename, 'w')) \
+ as (internal_file, index_file):
+ not_found = index.interpret_auxiliary(auxiliary, internal_file,
+ index_file)
+
+ for reference, page in not_found:
+ logging.warn('On page %s, reference to "%s" was not found '
+ 'in the index.', page, reference)
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/src/mkintex.py b/support/intex/src/mkintex.py
new file mode 100644
index 0000000000..1b9e74ce0a
--- /dev/null
+++ b/support/intex/src/mkintex.py
@@ -0,0 +1,215 @@
+#! /usr/bin/python
+# -*- coding: utf-8 -*-
+# $Id$
+from __future__ import with_statement
+"""
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+
+This file is part of InTeX.
+
+InTeX is free software: you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+InTeX is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with InTeX. If not, see <http://www.gnu.org/licenses/>.
+"""
+__version__ = "@VERSION@"
+__author__ = "Martin Thorsen Ranang <mtr@ranang.org>"
+
+from contextlib import nested
+from itertools import count, imap
+
+import logging
+import optparse
+import os
+import re
+import sys
+
+from intex.config import INTEX_DEFAULT_INDEX, INTEX_INPUT_EXT, INTEX_OUTPUT_EXT
+
+from intex.index import Index
+
+def parse_command_line(command_line_options, usage):
+ """Parse the command line according to the possible
+ COMMAND_LINE_OPTIONS.
+ """
+ license_notice = """
+Copyright (C) 2007, 2008 by Martin Thorsen Ranang
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by Martin Thorsen Ranang."""
+ parser = optparse.OptionParser(usage=usage,
+ version='%%prog %s %s' % (__version__,
+ license_notice))
+ for option, description in command_line_options:
+ parser.add_option(*option, **description)
+
+ # Parse the command line.
+ return parser.parse_args()
+
+
+def resolve_auxiliary_and_args(args):
+ """Resolve the name of the current LaTeX auxiliary file (.aux)
+ based on the supplied arguments and the current working directory.
+ """
+ aux_re = re.compile('^.*\.aux$', re.IGNORECASE)
+ auxiliary = [arg for arg in args
+ if aux_re.match(arg) and os.path.exists(arg)]
+ args = [arg for arg in args if arg not in auxiliary]
+
+ attempts = count(-2)
+
+ while attempts.next():
+ if len(auxiliary) > 1:
+ logging.error('Please explicitly specify the ' \
+ 'LaTeX auxiliary (.aux) file to use.')
+ sys.exit(1)
+
+ elif not auxiliary:
+ auxiliary = ['%s.aux' % (arg) for arg in args
+ if os.path.exists('%s.aux' % (arg))]
+ args = [arg for arg in args if '%s.aux' % (arg) not in auxiliary]
+
+ else:
+ auxiliary = auxiliary[0]
+ break
+
+ return auxiliary, args
+
+
+def main():
+ """Module mainline (for standalone execution).
+ """
+ command_line_options = [
+ (['-D', '--debug'],
+ {'dest': 'debug',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'whether or not to output debug information'}),
+ (['-V', '--verbose'],
+ {'dest': 'verbose',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'whether or not to output verbose information'}),
+ (['-I', '--only-build-index'],
+ {'dest': 'only_build_index',
+ 'default': False,
+ 'action': 'store_true',
+ 'help': 'only build the internal model of the index'}),
+ (['-O', '--ito-file'],
+ {'dest': 'ito_filename',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output the new internal InTeX information to FILE ' \
+ '(default: %default)'}),
+ (['-o', '--index-file'],
+ {'dest': 'index_filename',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output the new indexing information to FILE ' \
+ '(default: %default)'}),
+ (['-a', '--acrodef-output'],
+ {'dest': 'acrodef_output',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output acronym definitions to FILE ' \
+ '(default: %default)'}),
+ (['-p', '--persondef-output'],
+ {'dest': 'persondef_output',
+ 'default': None,
+ 'metavar': 'FILE',
+ 'help': 'output (person) name definitions to FILE ' \
+ '(default: %default)'}),
+ ]
+
+ # Parse the command line options.
+ options, args = parse_command_line(command_line_options,
+ usage='%prog [options] ' \
+ '<index> [index ...]',)
+
+ # Sort out the name for the basic log.
+ logging.root.name = os.path.basename(__file__)
+
+ log_level = None
+
+ if options.verbose:
+ log_level = logging.INFO
+ if options.debug:
+ log_level = logging.DEBUG
+
+ # Configure the logging module.
+ logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s',
+ level=log_level)
+
+ auxiliary, args = resolve_auxiliary_and_args(args)
+ if not auxiliary:
+ logging.warning('No LaTeX auxiliary file specified; exiting.')
+ sys.exit(1)
+
+ if options.index_filename is None:
+ logging.warning('No output index file specified; exiting.')
+ sys.exit(1)
+
+ if len(args) == 0:
+ suffix_re = re.compile('^.*\.%s$' % (INTEX_INPUT_EXT))
+
+ filenames = [filename
+ for filename in os.listdir(os.getcwd())
+ if suffix_re.match(filename)]
+ else:
+ filenames = args
+
+ # If no ITO file was explicitly stated, deduce the implied name.
+ if options.ito_filename is None:
+ options.ito_filename = (os.path.splitext(auxiliary)[0] \
+ + os.path.extsep + 'ito')
+
+ for filename in filenames:
+ if not os.path.exists(filename):
+ logging.error('Input file "%s" not found', filename)
+ sys.exit(1)
+
+ if options.verbose:
+ logging.info('Will use "%s" as (main) LaTeX auxiliary file', auxiliary)
+ logging.info('Will use InTeX input files: %s',
+ ', '.join(imap('"%s"'.__mod__, filenames)))
+
+ # Instatiate one Index object per file specified on the command
+ # line.
+ logging.info('Generating index...')
+ indices = [Index.from_file(filename) for filename in filenames]
+
+ # Generate all reference indices.
+ for index in indices:
+ index.generate_reference_index()
+
+ logging.info('... done (index generated).')
+
+ if options.debug:
+ for index in indices:
+ logging.debug('\n%s', index)
+
+ if options.only_build_index:
+ return
+
+ with nested(open(options.ito_filename, 'w'),
+ open(options.index_filename, 'w')) \
+ as (internal_file, index_file):
+ not_found = index.interpret_auxiliary(auxiliary, internal_file,
+ index_file)
+
+ for reference, page in not_found:
+ logging.warn('On page %s, reference to "%s" was not found '
+ 'in the index.', page, reference)
+
+if __name__ == "__main__":
+ main()
diff --git a/support/intex/src/post-install.sh b/support/intex/src/post-install.sh
new file mode 100644
index 0000000000..0abdccad38
--- /dev/null
+++ b/support/intex/src/post-install.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+# lsb_release=/etc/lsb-release
+
+# if [ -f $lsb_release ]; then
+# . $lsb_release
+# fi
+
+# if [ $DISTRIB_ID = "Ubuntu" ]; then
+# dh_installtex
+# else
+# if which mktexlsr >/dev/null; then
+# mktexlsr /usr/local/share/texmf
+# fi
+# fi
+
+if which mktexlsr >/dev/null; then
+ mktexlsr /usr/local/share/texmf
+fi
diff --git a/support/intex/src/post-install.sh.in b/support/intex/src/post-install.sh.in
new file mode 100644
index 0000000000..bf533100ac
--- /dev/null
+++ b/support/intex/src/post-install.sh.in
@@ -0,0 +1,24 @@
+#! /bin/sh
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+# lsb_release=/etc/lsb-release
+
+# if [ -f $lsb_release ]; then
+# . $lsb_release
+# fi
+
+# if [ $DISTRIB_ID = "Ubuntu" ]; then
+# dh_installtex
+# else
+# if which mktexlsr >/dev/null; then
+# mktexlsr @prefix@/share/texmf
+# fi
+# fi
+
+if which mktexlsr >/dev/null; then
+ mktexlsr @prefix@/share/texmf
+fi
diff --git a/support/intex/src/post-uninstall.sh b/support/intex/src/post-uninstall.sh
new file mode 100644
index 0000000000..fc42c85696
--- /dev/null
+++ b/support/intex/src/post-uninstall.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+# lsb_release=/etc/lsb-release
+
+# if [ -f $lsb_release ]; then
+# . $lsb_release
+# fi
+
+# if [ $DISTRIB_ID = "Ubuntu" ]; then
+# dh_installtex
+# else
+# if which mktexlsr >/dev/null; then
+# mktexlsr /usr/local/share/texmf
+# fi
+# fi
+
+if which mktexlsr > /dev/null; then
+ mktexlsr /usr/local/share/texmf
+fi
diff --git a/support/intex/src/post-uninstall.sh.in b/support/intex/src/post-uninstall.sh.in
new file mode 100644
index 0000000000..597c6a37ea
--- /dev/null
+++ b/support/intex/src/post-uninstall.sh.in
@@ -0,0 +1,24 @@
+#! /bin/sh
+#
+# $Id$
+#
+# Copyright (C) 2007 by Martin Thorsen Ranang
+#
+
+# lsb_release=/etc/lsb-release
+
+# if [ -f $lsb_release ]; then
+# . $lsb_release
+# fi
+
+# if [ $DISTRIB_ID = "Ubuntu" ]; then
+# dh_installtex
+# else
+# if which mktexlsr >/dev/null; then
+# mktexlsr @prefix@/share/texmf
+# fi
+# fi
+
+if which mktexlsr > /dev/null; then
+ mktexlsr @prefix@/share/texmf
+fi
diff --git a/support/intex/template.itx b/support/intex/template.itx
new file mode 100644
index 0000000000..be27555344
--- /dev/null
+++ b/support/intex/template.itx
@@ -0,0 +1,19 @@
+% $Id$
+%
+% name=default
+%
+% Copyright (C) 2007 by Martin Thorsen Ranang
+%
+
+% *ACRONYMS*
+
+% *PERSONS*
+
+% *CONCEPTS*
+
+% Local Variables:
+% mode: latex
+% TeX-master: t
+% ispell-local-dictionary: "american"
+% mode: flyspell
+% End:
diff --git a/support/intex/test.itx b/support/intex/test.itx
new file mode 100644
index 0000000000..65fc55cfed
--- /dev/null
+++ b/support/intex/test.itx
@@ -0,0 +1,347 @@
+% *ACRONYMS*:
+% <acronym> <full-form> <len(t & remove)typeset-as>
+% <equivalent> [full-form] [typeset-as] [:sub-index-as]
+%
+
+AI Artificial Intelligence
+AIE artificially intelligent encyclopedia
+ALEPH A Learning Engine for Proposing Hypothesis
+API application program[ming] interface
+CFG Context-Free Grammar
+CLIR Cross Language Information Retrieval
+CS Computer Science
+CSG Context-Sensitive Grammar
+ConSensiCAL Context-Sensitive-Categorial-Attribute-Logic
+CtWN Catalan WordNet
+DAG directed acyclic graph
+ DAGs #s
+DCG Definite Clause Grammar
+DTD document type definition
+EL Event Logic
+ERG English Resource Grammar
+EU European Union
+EUWN EuroWordNet EuroWordNet
+FOPC First Order Predicate Calculus
+FS feature structure
+ FSs #s
+HPSG Head-Driven Phrase Structure Grammar
+HTML Hypertext Markup Language
+I/O input/output
+ILP Inductive Logic Programming
+IE Information Extraction
+IR Information Retrieval
+IS Information Systems
+KB knowledgebase
+ KBs #s
+LDOCE Longman Dictionary of Contemporary English
+LFG Lexical-Functional Grammar
+LinGO Linguistic Grammars Online
+LKB Linguistic Knowledge Builder
+LOGON Leksikon, ordsemantikk, grammatikk og oversettelse for norsk
+MDL minimal description length
+MLE maximum likelihood estimation
+MRD machine-readable dictionary
+ MRDs #s
+MRS Minimal Recursion Semantics
+MT Machine Translation
+MTRs MRS transfer rules
+NL natural language
+NLP Natural Language Processing
+NLU Natural Language Understanding
+NLTK Natural Language Toolkit
+ NLTK Lite :Lite
+NorGram Norsk komputasjonell grammatikk
+NorKompLeks Norsk komputasjonelt leksikon
+NorSource Norwegian Resource Grammar
+NP noun phrase
+NTNU Norwegian University of Science and Technology
+OO object-oriented
+PAC probably approximately correct
+POS part of speech
+PP prepositional phrase
+ PPs #s
+QA question-answering
+SBD sentence-boundary detection
+SNL Store norske leksikon
+SpWN Spanish WordNet
+SQL Structured Query Language
+STrie Static Trie
+TDAG translation DAG
+TQL TUC Query Language
+TUC The Understanding Computer
+VSM vector-space model
+WN WordNet WordNet
+WN20 WordNet 2.0 WN 2.0
+WN21 WordNet 2.1 WN 2.1
+WSD word-sense disambiguation
+WSJ Wall Street Journal
+XLE Xerox Linguistic Environment
+XML Extensible Markup Language
+ XML-format :-format
+synset synonym set
+ synsets #s
+regexp regular expression
+
+% Translational resources:
+%
+NKL Norsk komputasjonelt leksikon
+NorEng Norsk-engelsk stor ordbok
+EngNor Engelsk-norsk stor ordbok
+ComboNorEng a combination of NorEng and EngNor
+
+% *CONCEPTS*:
+% [^]<index_as> [full_form [typeset_as]] [@sort_as]
+% <in_text>
+% [equivalent phrase]
+
+adjective
+ adjectives #s
+adverb
+ adverbs #s
+ANSI C
+approximate string matching
+antonymy
+ Antonymy
+ antonym
+ antonyms #s
+ direct antonymy :direct
+ direct antonyms #s :direct
+ indirect antonymy :indirect
+ indirect antonyms #s :indirect
+
+attribute-logic
+auxiliary verb
+ auxiliary verbs
+base form
+ root form
+BirdQuest
+BusTUC
+
+categorial
+category
+ categories #y
+class
+ classes #s
+collocation
+compound
+ compounds #s
+ endocentric compounds :endocentric
+compound-word analysis
+compression
+concept
+conceptual density
+content word
+ content words #s
+context-sensitive
+coordinate terms
+corpora
+ parsed corpora :parsed
+CYC
+
+determiner
+ determiners #s
+document retrieval
+
+EuroWordNet
+examples
+ positive examples :positive
+ negative examples :negative
+ExamTUC
+Extraposition Grammar
+
+F-measure
+first-order predicate logic
+function word
+ function words
+ grammatical words
+generality
+Generative Lexicon
+GeneTUC
+grammar
+ grammars #s
+grammatical head
+graph
+ acyclic
+ cyclic
+ directed
+ edge
+ node
+ tree
+ undirected
+ vertex
+graph theory
+
+hash index
+heterarchy
+ heterarchies #y
+hierarchy
+ hierarchies #y
+holonym
+ part holonyms :part
+homograph
+ homographs #s
+hypernymy
+ hypernym
+ hypernyms #s
+ instance hypernymy :instance
+hyponymy
+ hyponym
+ hyponyms #s
+ is-a-kind-of
+ is-a
+ instance hyponymy :instance
+hypothesis
+
+interjection
+ interjections #s
+knowledge representation
+Kunnskapsforlaget
+
+lattice
+learning
+ compact hypothesis
+ over-fitting
+ smoothing
+lexeme
+ lexemes #s
+ lexical item
+ lexical items #s
+lexical category
+ lexical categories #y
+ lexical class
+ lexical classes #s
+lexicon
+ lexicons #s
+
+meronymy
+ meronym
+ meronyms #s
+mirror semantics
+MURAX
+
+named-entity recognition
+native XML database
+nominal
+ nominals #s
+nominalization
+ nominalizations #s
+ deverbal nominalization :deverbal
+ deverbal nominalizations #s
+noun
+ nouns #s
+NRL
+
+Ockham's razor
+OMEGA
+ontology
+ ontologies
+
+phrase
+PostgreSQL
+polysemy
+power set
+precision
+preposition
+ prepositions
+programming language
+ Prolog
+ Python
+proposition
+ propositions
+
+recall
+related word
+
+search
+ search space :space
+ search strategy :strategy
+semantic network
+ semantic networks #s
+ lexical semantic network
+semantic type checking
+semantically redundant
+sense
+ senses #s
+SENSUS
+sentence frames
+set
+SICStus
+similarity
+ similar
+SIMPLE
+Snowball
+stationary
+stemmer
+Subversion
+synonymy
+ synonym
+ synonyms #s
+ propositional synonyms
+ absolute synonymy
+ synonymous
+
+taxonomy
+tokenization
+ Tokenizing
+translation paths
+tree
+trie
+Trivial Pursuit
+troponymy
+TUClopedia
+type hierarchy
+unit testing
+
+verb
+ verbs #s
+verb frame
+ verb frames #s
+verbal complements
+version control system
+Verto
+
+Wikipedia
+word class
+ word classes #s
+ closed word class :closed
+ closed word classes #s :closed
+ open word class :open
+ open word classes #s :open
+
+word form
+ word forms
+ morphosyntactic word
+World Book Encyclopedia
+
+Zipf's law
+
+% *PERSONS*:
+%
+AA Aamodt Agnar
+TA Amble Tore
+MEB Bayegan May Elisabeth
+TB Bruland Tore
+JC Cassens Jörg
+%MDV Dimitrova-Vulchanova Mila
+HD Dyvik Helge
+KME Eide Kristin Melum
+LdV da Vinci Leonardo
+ZCF Fulup Zoran \ldots
+GG Gorrell Genevieve
+MF Fodstad Marte
+MLH Hetland Magnus Lie
+JBJ Johannessen Janne Bondi
+HM Midelfart Herman
+TN Nordgård Torbjørn
+SBN Norås Sindre Bjørnar
+AT Tveit Amund
+MDV Vulchanova Mila
+GKZ Zipf George Kingsley
+
+%%% Local Variables:
+%%% mode: latex
+%%% buffer-file-coding-system: latin-1-unix
+%%% TeX-master: "main"
+%%% ispell-local-dictionary: "american"
+%%% mode: flyspell
+%%% End: