diction-1.14/COPYING0000644000014400001440000010437413067443010013264 0ustar michaeluser GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. 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. Copyright (C) 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 . 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: Copyright (C) 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 . 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 . diction-1.14/INSTALL0000644000014400001440000002231013067443010013247 0ustar michaeluserInstallation 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. diction-1.14/Makefile.in0000644000014400001440000000752013067443010014271 0ustar michaeluser# This file is free software; as a special exception the author 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. srcdir= @srcdir@ VPATH= @srcdir@ prefix= @prefix@ exec_prefix= @exec_prefix@ datarootdir= @datarootdir@ localedir= @localedir@ CC= @CC@ CFLAGS= @CFLAGS@ CPPFLAGS= @CPPFLAGS@ -I. -DSHAREDIR=\"@datarootdir@\" -DLOCALEDIR=\"$(localedir)\" LDFLAGS= @LDFLAGS@ LIBM= -lm LIBS= @LIBS@ CATALOGS= de.mo en_GB.mo nl.mo all: diction style all-po-@USE_NLS@ all-po-no: all-po-yes: $(CATALOGS) diction: diction.o sentence.o misc.o getopt.o getopt1.o $(CC) -o $@ $(LDFLAGS) diction.o sentence.o misc.o \ getopt.o getopt1.o $(LIBS) style: style.o sentence.o misc.o getopt.o getopt1.o $(CC) -o $@ $(LDFLAGS) style.o sentence.o misc.o \ getopt.o getopt1.o $(LIBM) $(LIBS) check: diction for i in $(srcdir)/test/test*; do $$i || break; done install: all [ -d $(DESTDIR)@bindir@ ] || @INSTALL@ -m 755 -d $(DESTDIR)@bindir@ @INSTALL@ diction $(DESTDIR)@bindir@/diction @INSTALL@ style $(DESTDIR)@bindir@/style @INSTALL@ -m 755 -d $(DESTDIR)@datarootdir@/diction @INSTALL@ -m 644 $(srcdir)/de $(DESTDIR)@datarootdir@/diction/de @INSTALL@ -m 644 $(srcdir)/en $(DESTDIR)@datarootdir@/diction/en (cd $(DESTDIR)@datarootdir@/diction; rm -f C; ln en C) @INSTALL@ -m 644 $(srcdir)/en_GB $(DESTDIR)@datarootdir@/diction/en_GB @INSTALL@ -m 644 $(srcdir)/nl $(DESTDIR)@datarootdir@/diction/nl [ -d $(DESTDIR)@mandir@/man1 ] || @INSTALL@ -m 755 -d $(DESTDIR)@mandir@/man1 @INSTALL@ -m 644 diction.1 $(DESTDIR)@mandir@/man1/diction.1 @INSTALL@ -m 644 style.1 $(DESTDIR)@mandir@/man1/style.1 make install-po-@USE_NLS@ install-po-no: install-po-yes: $(CATALOGS) for cat in $(CATALOGS); do \ dir=$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \ [ -d $(DESTDIR)$$dir ] || @INSTALL@ -m 755 -d $(DESTDIR)$$dir; \ @INSTALL@ -m 644 $$cat $(DESTDIR)$$dir/diction.mo; \ done .c.o: $(CC) -c $(CPPFLAGS) $(CFLAGS) $< .SUFFIXES: .po .mo .po.mo: msgfmt -o $@ $< $(CATALOGS:.mo=.po): diction.pot for cat in $@; do \ [ -f $$cat ] || cp $(srcdir)/$$cat .; \ if msgmerge $$cat diction.pot -o $$cat.tmp; then \ mv -f $$cat.tmp $$cat; \ cmp -s $$cat $(srcdir)/$$cat || \ cp $$cat $(srcdir)/$$cat; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$cat.tmp; \ exit 1; \ fi; \ done diction.pot: $(srcdir)/*.c (objdir=`pwd`; cd $(srcdir); \ xgettext --add-comments --keyword=_ \ --output=$$objdir/messages.po *.c ) test -f messages.po && mv messages.po $@ # The sources have changed -- update diction.pot in srcdir as well. cmp $@ $(srcdir)/$@ || cp $@ $(srcdir)/$@ diction.html: diction.texi makeinfo --html diction.texi diction.info: diction.texi makeinfo diction.texi #{{{script}}}#{{{ clean clean: rm -f *.out core *.o *.mo diction.html diction.info #}}} #{{{ distclean distclean: clean rm -f diction style config.cache config.h config.log config.status configure.lineno Makefile diction.1 diction.texi style.1 test/rundiction rm -rf autom4te.cache #}}} #{{{ tar tar: distclean (b=`pwd`; b=`basename $$b`; cd ..; tar zcvf $$b.tar.gz $$b/COPYING $$b/INSTALL $$b/Makefile.in $$b/README $$b/NEWS $$b/configure $$b/install-sh $$b/de $$b/en $$b/en_GB $$b/nl $$b/test $$b/[a-z]*.*) #}}} #{{{ dependencies diction.o: diction.c config.h getopt.h misc.h sentence.h getopt.o: getopt.c getopt.h getopt_int.h getopt1.o: getopt1.c getopt.h getopt_int.h misc.o: misc.c config.h misc.h sentence.o: sentence.c config.h misc.h sentence.h style.o: style.c config.h getopt.h misc.h sentence.h #}}} diction-1.14/README0000644000014400001440000000247113152620644013111 0ustar michaeluserGNU diction and style are free implementations of old standard unix commands, that are not available on many modern systems, because they have been unbundled. Diction prints wordy and commonly misused phrases. Style analyses surface characteristics of a document, e.g. sentence length and various readability measures, but unlike the original code, it lacks sentence type, word usage and most sentence beginning processing. Both commands support Dutch, English and German documents. You can get the latest release from: http://www.moria.de/~michael/diction/ Windows binaries are available from: http://gnuwin32.sourceforge.net/packages/diction.htm 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. diction-1.14/NEWS0000644000014400001440000000033213152620430012713 0ustar michaeluserThe following things have been changed compared to version 1.13: o Described diction file format o Allowed diction databases to contain comments o Diction runs faster o Bug that prevented to mark fill words fixed diction-1.14/configure0000755000014400001440000043730013067443010014136 0ustar michaeluser#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="diction.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS USE_NLS DATADIR UPDATED VERSION EGREP GREP CPP MSGFMT INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM VALGRIND OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build 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 with_valgrind ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # 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}' 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 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 this package 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/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-valgrind run regression tests with valgrind Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor 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 configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile 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 $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" 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. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac VERSION=1.13 UPDATED='January 29, 2014' case $host in hppa1.1-hp-hpux11.00) EXTRA_CFLAGS='+O2 +Onolimit -D_XOPEN_SOURCE_EXTENDED ' EXTRA_LDFLAGS='-z ' EXTRA_GCFLAGS='-D_XOPEN_SOURCE_EXTENDED ' EXTRA_GLDFLAGS='-Wl,-z ' ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$GCC" = yes then CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common" LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g" else CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}" fi # Check whether --with-valgrind was given. if test "${with_valgrind+set}" = set; then : withval=$with_valgrind; VALGRIND="valgrind" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' for ac_func in strerror do : ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" if test "x$ac_cv_func_strerror" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5 $as_echo_n "checking for library containing regcomp... " >&6; } if ${ac_cv_search_regcomp+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char regcomp (); int main () { return regcomp (); ; return 0; } _ACEOF for ac_lib in '' regex pcre; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_regcomp=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_regcomp+:} false; then : break fi done if ${ac_cv_search_regcomp+:} false; then : else ac_cv_search_regcomp=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5 $as_echo "$ac_cv_search_regcomp" >&6; } ac_res=$ac_cv_search_regcomp if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken realloc" >&5 $as_echo_n "checking for broken realloc... " >&6; } if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include static void sigsegv(int n) { exit(1); } int main(void) { signal(SIGSEGV,sigsegv); realloc((void*)0,1); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else $as_echo "#define BROKEN_REALLOC 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi USE_NLS=no # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MSGFMT"; then ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MSGFMT="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_MSGFMT" && ac_cv_prog_MSGFMT="no" fi fi MSGFMT=$ac_cv_prog_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$MSGFMT" = yes then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in libintl.h do : ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" if test "x$ac_cv_header_libintl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBINTL_H 1 _ACEOF LIBINTL=yes fi done if test "$LIBINTL" = yes then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 $as_echo_n "checking for library containing gettext... " >&6; } if ${ac_cv_search_gettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gettext (); int main () { return gettext (); ; return 0; } _ACEOF for ac_lib in '' intl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gettext=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gettext+:} false; then : break fi done if ${ac_cv_search_gettext+:} false; then : else ac_cv_search_gettext=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 $as_echo "$ac_cv_search_gettext" >&6; } ac_res=$ac_cv_search_gettext if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h USE_NLS=yes fi fi fi cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF eval DATADIR=$datadir ac_config_files="$ac_config_files Makefile diction.1 diction.texi diction.spec style.1 test/rundiction" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers 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="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "diction.1") CONFIG_FILES="$CONFIG_FILES diction.1" ;; "diction.texi") CONFIG_FILES="$CONFIG_FILES diction.texi" ;; "diction.spec") CONFIG_FILES="$CONFIG_FILES diction.spec" ;; "style.1") CONFIG_FILES="$CONFIG_FILES style.1" ;; "test/rundiction") CONFIG_FILES="$CONFIG_FILES test/rundiction" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 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 _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 $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; 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 diction-1.14/install-sh0000755000014400001440000003272513067443010014235 0ustar michaeluser#!/bin/sh # install - install a program, script, or datafile scriptversion=2010-02-06.18; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: diction-1.14/de0000644000014400001440000000522113067443010012533 0ustar michaeluser Abnahme nimmt ab Kontrollstruktur Steuerstruktur Paradigma Nur als Synonym für "Beispiel, Muster" verwenden. Seiteneffekt Nebenwirkung, unerwüschte Auswirkung Zunahme nimmt zu also folglich, d.h., demnach, demzufolge, daher, deswegen anstatt dass anstattdessen anstatt daß anstattdessen auch ebenfalls, zusätzlich, in gleicher Weise, dementsprechend beinhalten enthalten, umfassen, einschließen, abdecken bekannt, dass bekanntlich bekannt, daß bekanntlich bereits besitzen Dinge haben kein Eigentum, richtig ist: "haben, enthalten" besitzt Dinge haben kein Eigentum, richtig ist: "hat, enthält" besonders bzw. Ggfs. "und" oder "oder" verwenden. dabei hierzu, auf diese Weise damit deshalb, so daß darum folglich, d.h., demnach, demzufolge, daher, deswegen denke ich nicht meine ich nicht denke nicht meine nicht doch eben eigentlich erforderlich, dass muß, müssen erforderlich, daß muß, müssen erstellen Nur als Synonym für "aufstellen, aufrichten" verwenden, ansonsten: "anfertigen, aufbauen, bauen, bilden, entwerfen, entwickeln, erarbeiten, erzeugen, herstellen, konstruieren, zusammenstellen" folgt, dass folglich folgt, daß folglich genauso entsprechend grundsätzlich größer wie größer als habe gezeigt, dass Wie ich gezeigt habe, ist habe gezeigt, daß Wie ich gezeigt habe, ist haben gezeigt, dass Wie wir gezeigt haben, ist haben gezeigt, daß Wie wir gezeigt haben, ist ist abhängig hängt ab ist geeignet eignet sich ist gleichbedeutend mit bedeutet so viel wie konkret konnte gezeigt werden, daß Wie gezeigt werden konnte, ist kontrolle Falsche Übersetzung von "control", richtig ist "Steuerung". kreieren erzeugen macht Sinn ist sinnvoll macht keinen Sinn ist sinnlos nicht anzunehmen, daß kaum nicht wirklich wirklich nicht oder eigentlich nicht nun nun einmal nämlich prinzipiell relativ sehr sicher so "So" ist oft so überflüssig. so dass ! so daß ! stellt Stellt es etwas dar oder ist es etwas? tatsächlich unterstützen Nur als Synonym für "helfen" verwenden, ansonsten: anbieten, ausführen einer Funktion vorherigen vorhergehenden vorigen vorhergehenden welche Benutze "die", falls eine Einschränkung folgt. welcher Benutze "der", falls eine Einschränkung folgt. welches Benutze "das", falls eine Einschränkung folgt. wesentliche grundsätzliche, bedeutende wesentliches grundsätzliches, bedeutendes wohl würde Sinn machen wäre sinnvoll würde keinen Sinn machen wäre sinnlos ziemlich zu berücksichtigen, daß allerdings überaus Und Anders formulieren. faktor Nur bei multiplikativer Wirkung benutzen. instanz Falsche Übersetzung von "instance", richtig ist: "Exemplar, Element, Objekt" verbrauch Verbrauch oder Bedarf? diction-1.14/en0000644000014400001440000006142613067443010012556 0ustar michaeluser a considerable amount of much a large number of many a lot of Often obsolete, should sometimes be replaced by "many" a majority of most a man who a matter of concern (cliche, avoid) a need for need a number of many, several a particular preference for a small number of few a tendency to ability to about which ! absolutely complete complete absolutely essential essential accomplish do accomplished did accounted for by the fact that caused by actually adequate (weak definition) adequate enough (weak definition) administrate administer advance notice notice advance preview preview affect "Affect" means "have an influence on", "produce an effect on", "concern", "effect a change in"; compare with "effect": "bring about", "cause", "produce, "result in." affected = affect affective "affective" or "effective"? after which ! all right (avoid) all things being equal (cliche, avoid) allude (an allusion is an indirect reference, while a reference is a direct reference) alluded = allude allusion = allude along the line (avoid) along the line of like (or omit) along the lines (avoid) along the lines of like (or omit) along these lines (overworked phrase, avoid) along those lines (avoid) alternate Alternative refers to choosing the other of two possibilities. Alternate refers to another element of a set, without connoting choice. alternative = alternate among Choose "between" 2 options and "among" 3 or more. an example of this is the fact that thus an indication of an order of magnitude faster 10 times faster and/or (avoid) anticipate Use "expect" for simple predictions and "anticipate" for more complex actions in advance of an event. anticipated = anticipate apparent that are of the same opinion agree arrive at a arrive at a decision decide as a consequence of because as a last resort (cliche, avoid) as a matter of fact in fact (or omit) as a minimum (weak definition) as a result so as already stated (use active instead of passive voice) as applicable (weak definition) as appropriate (weak definition) as can be seen from shows as good or better than (use "as good as or better than" or possibly rearrange the sentence) as is the case as happens as long as when, if as means of for, to as necessary as of this date today as per as shown in shows that as to about (or omit) as to whether whether as yet (you can often replace with simply "yet," except at the beginning of a sentence) ask the question ask assure (use "assure" with people, "ensure" with things, and "insure" when talking about money) assured = assure assuring = assure at above above at an earlier date previously at below below at present at the present time now, at present, at this time at the present at the rate of at the same time as while at this point in time now at this time at which ! attached hereto (cliche, avoid) attempt try authorization avail yourself help based on the fact that because based on the fact, that because basic principles principles basically be able to (weak definition) be capable (weak definition) between (choose "between" 2 options and "among" 3 or more) between which ! bring to a conclusion conclude but not limited to (weak definition) by means of by, with by no means (cliche, avoid) by the use of by by which ! call your attention to the fact that remind you, notify you can (do not confuse with "may") can not (use "cannot" unless you want to put special emphasis on the word "not") capability of (weak definition) capability to (weak definition) carry out case Avoid if used to describe the instance of a situation. certainly Avoid if used to intensify any and every statement. character Often redundant, except when discussing role-playing games. check into check check on check check up on check claim Do not use as substitute for "declare", "maintain" or "charge." clear that clever Greatly overused word, restrict to small matters. clockwise ! collaborate together collaborate collect together collect communicate with talk, telephone, write to comparatively Avoid unless really comparing. compare "Compare" to points out resemblances, "compare with" points out differences. compare with = compare compared = compare compared with = compare comparing = compare comparing with = compare complementary A "complimentary" comment is one which is flattering. A "complementary" comment is one which completes or complements another comment. completely full full completely unanimous unanimous complimentary = complementary comprise Only use in the meaning of including something. comprised = comprise comprising = comprise connected together connected consensus of opinion consensus consider Not followed by "as" when it means "believe to be". considered = consider considering = consider conspicuous by its absence (cliche, avoid) contact When used as a transitive verb, "contact" is a poor choice. Get in touch with someone, or call them, instead of contacting them. contacted = contact contacting = contact cope Should generally be used along with the word "with". cope with ! coped = cope coped with ! could = can criteria = criterion criterion "Criterion" is singular, "criteria" is plural. currently Often redundant: This program is currently checking your document. data is data are deficiency lack definitely deleterious effect dependable reliable, trustworthy desert "Desert" and "dessert" are sometimes confused, to the delight of the masses. despite the fact that although, though despite the fact, that although, though dessert = desert different than Restrict to introducing a clause and use "different from" else. discontentment discontent disinterest Synonym for "impartial", do not confuse with "uninterested." disinterested = disinterest disinteresting = disinterest doubt but doubt doubtful that due to Synonym for "attributable to", often confused with "through, because of, owing to." due to the fact that because due to the fact, that because during the course of during, while during the time that while each and every one (avoid) easier said than done (cliche, avoid) easy (weak definition) effect = affect effected = effect effecting = effect effective (weak definition) elucidate explain elucidated = elucidate elucidating = elucidate enclosed herewith (cliche, avoid) end result result enormity Restrict to connoting abnormality or something more unusual than mere size. ensure = assure ensured = assure ensuring = assure enter in enter enter into enter enthuse (avoid) enthused = enthuse enthusing = enthuse entirely eliminate eliminate equitable fair essentially etc "Etc" should be avoided in formal writing. etc. Do not use for persons or if "and the rest, and so forth" is insufficient and at the end of lists started with "such as, for example." Avoid in formal writing. evident that exactly equal equal except in a small number of cases usually exception of expect = anticipate expect = anticipate expected = anticipate expected = anticipate expecting = anticipate experimentalize experiment extra bonus bonus fabricate make face up to face facilitate help facilitated = facilitate facilitating = facilitate facility Substitute if you can name the object. fact Restrict use to matters that can be verified. factor "component", "ingredient" or "element" outside mathematical contexts fairly farther "Farther" denotes distance, "further" denotes time or quantity. fewer Use "fewer" for numbers and "less" for quantities. final outcome outcome finalise = finalize finalised = finalized finalising = finalizing finalize end (or avoid) finalized = ended (or avoid) finalizing = ending (or avoid) find it interesting to know Avoid first of all first firstly first folks Avoid using "folks", when writing formally, to refer to your family or friends. for the purpose of for for the reason that since, because for the reason, that since, because for this reason since, because for this reason so for which ! for your information formalize Rewrite. fortuitous A fortuitous event has the connotation of being an unexpected accident. fortuitously = fortuitous forward send (if used as verb) free gift gift from the point of view of for from which fuller A fuller is a hammer for spreading iron. You can't "fill your glass fuller." funny Avoid "funny" when introducing something. Simply introduce it. further = farther give an indication of indicate give encouragement to encourage give rise to cause got to gotten The preferred form of this participle is "got," but it is unpleasant to the ear in either form. gratuitous Synonym for "unearned" or "unwarranted", do not confuse with "free." gratuitously = gratuitous gratuitousness = gratuitous grow Often misused as a transitive verb: You cannot `grow the economy'. In addition, you should not try `to grow the economy', even if you are President Clinton. Instead, you should endeavor to expand the economy, or stimulate economic growth. hardy A "hardy" person can survive hardship. A "hearty" meal is a nourishing one. has the capability of can having regard to about he is a man who he hearty = hardy help but hollow tube tube hopefully Restrict to "with hope", do not confuse with "I hope." Best avoid it. however Means "in whatever way, to whatever extent" inside a sentence and "nevertheless" at the beginning of a sentence. if and when (cliche, avoid) if practical (weak definition) impact Use something more precise, unless you are discussing a physical collision. impacted = impact impacting = impact implied = imply imply Something that is suggested is "implied", whereas something that is deduced is "inferred". implying = imply importantly (avoid) importantly Rewrite. in a considerable number of cases often in a hasty manner hastily in a number of cases some in a position to can, may in a satisfactory manner satisfactorily in a very real sense in a sense (or omit) in accordance in all probability probably in an area where where in an effort to to in case if in close proximity close, near in close proximity to close to, near to in color in connection with about, concerning in fact in large measure largely in length in many cases often in my opinion it is not an unjustifiable assumption that I think in number in order to to in point of fact in reference to (cliche, avoid) in reference to concerning, about in regard to = in regards to in regards to as regards, in regard to, about or another simple preposition in relation to toward, to in respect to about in short supply (cliche, avoid) in size in some cases sometimes in spite of the fact that though, although in such a manner in terms of in, for, about (or avoid) in the course of during in the direction of toward in the event in the event that if in the final analysis Avoid by rewriting the sentence. in the foreseeable future (cliche, avoid) in the form of as in the last analysis in the light of the fact that because in the long run (cliche, avoid) in the majority of cases usually, generally in the majority of instances usually, generally in the matter of (cliche, avoid) in the nature of like in the neighborhood of about,approximately,near in the possession of has, have in the vicinity of about,approximately,near in view of the fact that since, as, because in which ! inasmuch as for, as indicative of infamous Synonym for "disreputable and widely known." infamously = infamous infer = imply inferred = imply inferring = imply inflammable Only use as synonym for flammable or combustible. infrequent rare initiate begin, start initiating beginning, starting inside When inside is used as an adverb, add the word "of": I will be there inside of an hour. inside of When inside is used as a preposition, the word "of" is not needed: I walked inside the building. insightful Consider substituting "perceptive". interesting Avoid using "interesting" when introducing something. Simply introduce it. into which ! involve the necessity of demand, require irregardless regardless is defined as is is designed to be is is equipped with has is used to is used to control controls is when Only use to denote time; do not use in definitions. is where Only use to denote place; do not use in definitions. it can be seen that thus, so it has long been known that I haven't bothered to look up the reference. it is apparent that apparently it is believed that I think it is clear that clearly it is considered desirable I or we want to it is doubtful that possibly it is evident that it is of interest to note that it is often the case that often it is suggested that I think it is worth pointing out in this context that note that it may be that I think it may, however, be noted that but it should be noted that note that (or leave out) it stands to reason it stands to reason (cliche, avoid) it was observed in the course of the experiments that we observed it's = "it is" or "its"? its = it's join together join kind of Do not use as substitute for "rather" or "something like." lacked the ability to could not large number of many last but not least (avoid) later on later lay A transitive verb, not to be confused with the intransitive verb "lie". You "lie" down, and you "lay" an egg. However, note that the past tense of ``lie'' is ``lay'': Yesterday, I lay down and laid an egg. lead The past tense of the verb "lead" is "led". leave Do not use as substitute for "let:" Let go of my hand! Let it be! led = lead less Use "less" for quantities and "fewer" for numbers. like Substitute by "as" before phrases or clauses: Our love was beautiful, as love was meant to be. liken Avoid using the verb "liken," it is ugly. likewise ! literal = literally literally Do not use to support exaggeration. little data few data little doubt that loan Only use as a noun. "Lend" is a verb. loath = loathe loathe Only use as a verb, "loath" is an adjective. loose As a verb, it means "to release", but it can also be used as adverb. It is not a tense of "lose." loosed = loose loosing = loose lose out Means less than "lose" because of its commonness. low quantity small quantity major breakthrough breakthrough majority of most make a make an make an adjustment in adjust manner many and diverse (cliche, avoid) may = Do not confuse with "can". may be that meaningful significant or rewrite, because it is an overused word meaningfully = meaningful memoranda "Memorandum" is singular, "memoranda" is plural. memorandum = memoranda might = can might of might have militate against prohibit minor importance mislead = lead misled = lead momento Use memento instead, even if Webster's claims momento is a word. momentos = momento most Do not use as substitute for "almost." mostly (avoid) much data many data nature Omit if redundant. nauseous Synonym for "sickening", do not confuse with the adjective "sick" or the verb "nauseate." near by near, near at hand, close by, hard by need for needless to say (avoid and consider leaving out what follows) neither Should be followed by "nor" instead of "or". new beginning beginning new innovation innovation nice Use a more exact word. nor Restrict to following "neither", but do not use instead of "or" in negative expressions. normal (weak definition) not under not unique not until notorious = infamous notorious = infamous notoriously = infamous notwithstanding notwithstanding the fact that although number of = a number of obsolete Using obsolete as a verb is ugly. obsoleted = obsolete obsoleting = obsolete occurrence event of great theoretical and practical importance useful of interest of the opinion that of the same opinion of which ! oftentimes often ofttimes often on a daily basis daily on account of because on behalf of for on the basis of by on the grounds that since, because on the occasion on the order of magnitude of about on the part of by, among, for on the part on on the right track (cliche, avoid) on which ! one When used as a pronoun, it must be used consistently: One must manage one's money carefully. one of the most Do not use at the beginning of a paragraph, best avoid at all because it is an overused phrase. ongoing (avoid) only Put "only" right before the word it modifies. operating system oral = verbal orientated oriented otherwise ! over which ! owing to the fact that since, because par for the course (cliche, avoid) past history history, past perform do payed "Payed" is only used to refer to extending a rope. The past tense of "pay" is "paid." people Do not use with numbers or as substitute for "public". performed done personal opinion opinion personalize (avoid) personalized = personalize personalizing = personalize personally (avoid) pertaining to about, on phase Do not use as substitute for "aspect, topic". plum Do not confuse the fruit "plum" with "plumbing" a depth. plumb = plum plumed = plum pluming = plum plums = plum please feel free to (cliche, avoid) pooled together pooled possess Do not use as substitute for "have" or "own." possessed = possess possessing = possess positive improvement improvement, positive powerful Overused, especially in computer industry press releases. precede Synonym for "to come before," do not confuse with "proceed." previous to, prior to before prior to before pursuant to your request (cliche, avoid) presently (do not use as substitute for "now", restrict to synonym for "soon") prestigious (an overused word) preventative preventive principal (a "principle" is a rule, while a "principal" is a person, when used as a noun, or means "chief", when used as an adjective, and the adverb for both words is spelt "principally") principally = principal principals = principal principle = principal principles = principal principlly = principal proceed to provide for (weak definition) put to use in building build put to use in measuring measure quite rather rather than reason is because reason is that, because reason to believe reason why reason refer = allude reference to this referred = allude referring = allude referred to as called regarding the matter of (cliche, avoid) relative to about register up (means less than "register" because of its commonness) regress back = revert back regressed back = revert back regressing back = revert back regretful (do not use as substitute for "regrettable") regretfully = regretful reinitiate start again reinitiated restarted reinitiating restarting relate (do not use as an intransitive verb: "I get along well with my advisor" instead of "I relate well to my advisor") related = relate relating = relate repeat again repeat repeat the same repeat the representative of represents requisite required respective respectively revert back ("revert" means "to go back", so this expression is redundant) reverted back = revert back reverting back = revert back rise to secondly second serious crisis crisis shall (shall is sometimes used with first person pronouns and the future tense. It expresses something you believe will happen, not something that you are determined to do. A drowning man shouts: "I shall drown, no one will save me!") should of should have sight = site sign up (means less than "sign" because of its commonness) site (a "site" is a place, a "sight" is related to "seeing") situation (rewrite) so (do not use as intensifier) so as to to so on ! so that ! sophisticated sort of (do not use as substitute for "rather" or "something like") slowly but surely (cliche, avoid) small concentration low concentration sufficient enough state (if used as a verb, restrict to the meaning of "express fully or clearly") stated = state stating = state still continue continue still continues continues strata = stratum stratum ("stratum" is singular, "strata" is plural) student body students subsequent to after subsequently to = subsequent to succeed in sufficient number of enough suggested that suggestive of system Frequently used without need. take appropriate take into consideration consider terminate end terminated ended, stopped terminating ending, stopping termination end than (examine sentences containing "than" to insure that they are not missing words: I love my father more than my mother. I love my father more than my mother loves my father. I love my father more than I love my mother) thank you in advance = thanking you in advance thanking you in advance (write "thanking you" or "your attention to this matter would be appreciated" and acknowledge granted favors) the author I the authors we the case that the fact the fact is (avoid) the fact that the fact was (avoid) the foreseeable future soon, the future the fullest possible extent most, completely or fully (or omit) the great majority of most the opinion is advanced that I think the nature the necessity of the order of the point that the reason is because because there is reason to believe I think the question as to whether whether, the question whether the truth is (a bad way to start a sentence) the truth was = the truth is there are (a dead phrase; rewrite the sentence and it will probably improve) there are not many few there is = there are there is no doubt that no doubt, doubtless there was = there are they (do not use as substitute for "each, each one, everybody, every one, anybody, any one, somebody, some one") thirdly third this is a subject which this subject this will acknowledge (cliche, avoid) through the use of by, with through which ! thrust (use sparingly, unless you are writing a romance novel) timely (weak definition) to which ! tortuous ("torturous" involves torture, while "tortuous" merely involves twist) torturous = tortuous totally unique unique transition (only use as a noun) transitioned = transition transitioning = transition transpire (restrict to "become known", do not confuse with "happen" or "occur") transpired = transpire transpiring = transpire try and ("try" should be followed by an infinitive, not the word "and") try out (means less than "try" because of its commonness) type (do not use as synonym for "kind of") under which ! ultimate last unexpected surprise surprise, unexpected unintended mistake mistake, poor decision, unintented unique ("unique" or "uncommon"?) uniquely = unique uniqueness = unique upon which ! upshot use to ("use to" or "used to"?) used for (used for [...] purposes: used for [...]) utilize use utilize use utilized used utilizing using varying (use "various" if a finite number of constant instances is meant) was of the opinion that believed we are pleased to advice (cliche, avoid) we have insufficient knowledge we don't know we wish to state (cliche, avoid) we wish to thank we thank varying amounts of varying verbal ("verbal" can be either spoken or written down, "oral" refers to the mouth) very (use sparingly; try to use words that are strong in themselves for emphasis) viewpoint point of view (do not use as substitute for "view, opinion") vital important whether (avoid using "or not" after "whether," unless you mean "regardless of whether") whether or not (restrict to synonym for "regardless of whether" else simply use "whether") which (use "that" if clause is restrictive) which was (often superfluous) while (if used as substitute for "and, but" then replace by semicolon, do not use as substitute for "although" as it leads to ambiguity or absurdity, best use it only in the sense of "during the time that") who is (often superfluous) whom (often incorrectly used for "who") will = shall b win out (means less than "win" because of its commonness) wish to thank thank with regard to concerning, about (or leave out) with respect to about with a view to to with reference to concerning, about with the exception of except with which ! with the aid of with with the possible exception of except with the result that so, therefore without which ! worth pointing out worth while (restrict to actions, do not use for approval and consider using a stronger word) worthwhile (only apply to actions and consider using a stronger word instead) would (use "should" if used as conditional statement in the first person or for "shall" in indirect quotation after a verb in past tense. Consider omitting it for repeated actions) would of would have would seem to indicate indicates you are hereby advised (cliche, avoid) inflammable (better use the preferred synonym "flammable", do not confuse with "combustible") ing behavior (avoid the term [...]ing behavior) unwise (avoid words that end in -unwise) wise (avoid words that end in -wise) diction-1.14/en_GB0000644000014400001440000006072313067443010013125 0ustar michaeluser a considerable amount of much a large number of many a lot of Often obsolete, should sometimes be replaced by "many" a majority of most a man who a matter of concern (cliche, avoid) a need for need a number of many, several a particular preference for a small number of few a tendency to ability to about which ! absolutely complete complete absolutely essential essential accomplish do accomplished did accounted for by the fact that caused by actually adequate (weak definition) adequate enough (weak definition) administrate administer affect "Affect" means "have an influence on", "produce an effect on", "concern", "effect a change in"; compare with "effect": "bring about", "cause", "produce, "result in." affected = affect affective "affective" or "effective"? after which ! all right (avoid) all things being equal (cliche, avoid) allude (an allusion is an indirect reference, while a reference is a direct reference) alluded = allude allusion = allude along the line (avoid) along the line of like (or omit) along the lines (avoid) along the lines of like (or omit) along these lines (overworked phrase, avoid) along those lines (avoid) alternate Alternative refers to choosing the other of two possibilities. Alternate refers to another element of a set, without connoting choice. alternative = alternate among Choose "between" 2 options and "among" 3 or more. an example of this is the fact that thus an indication of an order of magnitude faster 10 times faster and/or (avoid) anticipate Use "expect" for simple predictions and "anticipate" for more complex actions in advance of an event. anticipated = anticipate apparent that are of the same opinion agree arrive at a arrive at a decision decide as a consequence of because as a last resort (cliche, avoid) as a matter of fact in fact (or omit) as a minimum (weak definition) as a result so as already stated (use active instead of passive voice) as applicable (weak definition) as appropriate (weak definition) as can be seen from shows as good or better than (use "as good as or better than" or possibly rearrange the sentence) as is the case as happens as long as when, if as means of for, to as necessary as of this date today as per as shown in shows that as to about (or omit) as to whether whether as yet (you can often replace with simply "yet," except at the beginning of a sentence) ask the question ask assure (use "assure" with people, "ensure" with things, and "insure" when talking about money) assured = assure assuring = assure at above above at an earlier date previously at below below at present at the present at the present time now at the rate of at the same time as while at this point in time now at this time at which ! attached hereto (cliche, avoid) attempt try authorisation avail yourself help based on the fact that because based on the fact, that because basic principles principles basically be able to (weak definition) be capable (weak definition) between (choose "between" 2 options and "among" 3 or more) between which ! bring to a conclusion conclude but not limited to (weak definition) by means of by, with by no means (cliche, avoid) by the use of by by which ! call your attention to the fact that remind you, notify you can (do not confuse with "may") can not (use "cannot" unless you want to put special emphasis on the word "not") capability of (weak definition) capability to (weak definition) carry out case Avoid if used to describe the instance of a situation. certainly Avoid if used to intensify any and every statement. character Often redundant, except when discussing role-playing games. check into check check on check check up on check claim Do not use as substitute for "declare", "maintain" or "charge." clear that clever Greatly overused word, restrict to small matters. clockwise ! collect together collect communicate with talk, telephone, write to comparatively Avoid unless really comparing. compare "Compare" to points out resemblances, "compare with" points out differences. compare with = compare compared = compare compared with = compare comparing = compare comparing with = compare complementary A "complimentary" comment is one which is flattering. A "complementary" comment is one which completes or complements another comment. completely full full complimentary = complementary comprise Only use in the meaning of including something. comprised = comprise comprising = comprise connected together connected consensus of opinion consensus consider Not followed by "as" when it means "believe to be". considered = consider considering = consider conspicuous by its absence (cliche, avoid) contact When used as a transitive verb, "contact" is a poor choice. Get in touch with someone, or call them, instead of contacting them. contacted = contact contacting = contact cope Should generally be used along with the word "with". cope with ! coped = cope coped with ! could = can criteria = criterion criterion "Criterion" is singular, "criteria" is plural. currently Often redundant: This program is currently checking your document. data is data are deficiency lack definitely deleterious effect dependable reliable, trustworthy desert "Desert" and "dessert" are sometimes confused, to the delight of the masses. despite the fact that although, though despite the fact, that although, though dessert = desert different than Restrict to introducing a clause and use "different from" else. discontentment discontent disinterest Synonym for "impartial", do not confuse with "uninterested." disinterested = disinterest disinteresting = disinterest doubt but doubt doubtful that due to Synonym for "attributable to", often confused with "through, because of, owing to." due to the fact that because due to the fact, that because during the course of during, while during the time that while each and every one (avoid) easier said than done (cliche, avoid) easy (weak definition) effect = affect effected = effect effecting = effect effective (weak definition) elucidate explain elucidated = elucidate elucidating = elucidate enclosed herewith (cliche, avoid) end result result enormity Restrict to connoting abnormality or something more unusual than mere size. ensure = assure ensured = assure ensuring = assure enter in enter enter into enter enthuse (avoid) enthused = enthuse enthusing = enthuse entirely eliminate eliminate equitable fair essentially etc "Etc" should be avoided in formal writing. etc. Do not use for persons or if "and the rest, and so forth" is insufficient and at the end of lists started with "such as, for example." Avoid in formal writing. evident that exactly equal equal except in a small number of cases usually exception of expect = anticipate expect = anticipate expected = anticipate expected = anticipate expecting = anticipate experimentalise experiment fabricate make face up to face facilitate help facilitated = facilitate facilitating = facilitate facility Substitute if you can name the object. fact Restrict use to matters that can be verified. factor "component", "ingredient" or "element" outside mathematical contexts fairly farther "Farther" denotes distance, "further" denotes time or quantity. fewer Use "fewer" for numbers and "less" for quantities. finalise end (or avoid) finalised = ended (or avoid) finalising = ending (or avoid) find it interesting to know Avoid first of all first firstly first folks Avoid using "folks", when writing formally, to refer to your family or friends. for the purpose of for for the reason that since, because for the reason, that since, because for this reason since, because for this reason so for which ! for your information formalise Rewrite. fortuitous A fortuitous event has the connotation of being an unexpected accident. fortuitously = fortuitous forward send (if used as verb) from the point of view of for from which fuller A fuller is a hammer for spreading iron. You can't "fill your glass fuller." funny Avoid "funny" when introducing something. Simply introduce it. further = farther give an indication of indicate give encouragement to encourage give rise to cause got to gotten The preferred form of this participle is "got," but it is unpleasant to the ear in either form. gratuitous Synonym for "unearned" or "unwarranted", do not confuse with "free." gratuitously = gratuitous gratuitousness = gratuitous grow Often misused as a transitive verb: You cannot `grow the economy'. In addition, you should not try `to grow the economy', even if you are President Clinton. Instead, you should endeavour to expand the economy, or stimulate economic growth. hardy A "hardy" person can survive hardship. A "hearty" meal is a nourishing one. has the capability of can having regard to about he is a man who he hearty = hardy help but hollow tube tube hopefully Restrict to "with hope", do not confuse with "I hope." Best avoid it. however Means "in whatever way, to whatever extent" inside a sentence and "nevertheless" at the beginning of a sentence. if and when (cliche, avoid) if practical (weak definition) impact Use something more precise, unless you are discussing a physical collision. impacted = impact impacting = impact implied = imply imply Something that is suggested is "implied", whereas something that is deduced is "inferred". implying = imply importantly (avoid) importantly Rewrite. in a considerable number of cases often in a hasty manner hastily in a number of cases some in a position to can, may in a satisfactory manner satisfactorily in a very real sense in a sense (or omit) in accordance in all probability probably in an area where where in an effort to to in case if in close proximity close, near in close proximity to close to, near to in colour in connection with about, concerning in fact in large measure largely in length in many cases often in my opinion it is not an unjustifiable assumption that I think in number in order to to in point of fact in reference to (cliche, avoid) in reference to concerning, about in regard to = in regards to in regards to as regards, in regard to, about or another simple preposition in relation to toward, to in respect to about in short supply (cliche, avoid) in size in some cases sometimes in spite of the fact that though, although in such a manner in terms of in, for, about (or avoid) in the course of during in the direction of toward in the event in the event that if in the final analysis Avoid by rewriting the sentence. in the foreseeable future (cliche, avoid) in the form of as in the last analysis in the light of the fact that because in the long run (cliche, avoid) in the majority of cases usually, generally in the majority of instances usually, generally in the matter of (cliche, avoid) in the nature of like in the neighbourhood of about,approximately,near in the possession of has, have in the vicinity of about,approximately,near in view of the fact that since, as, because in which ! inasmuch as for, as indicative of infamous Synonym for "disreputable and widely known." infamously = infamous infer = imply inferred = imply inferring = imply inflammable Only use as synonym for flammable or combustible. infrequent rare initiate begin, start initiating beginning, starting inside When inside is used as an adverb, add the word "of": I will be there inside of an hour. inside of When inside is used as a preposition, the word "of" is not needed: I walked inside the building. insightful Consider substituting "perceptive". interesting Avoid using "interesting" when introducing something. Simply introduce it. into which ! involve the necessity of demand, require irregardless regardless is defined as is is designed to be is is equipped with has is used to is used to control controls is when Only use to denote time; do not use in definitions. is where Only use to denote place; do not use in definitions. it can be seen that thus, so it has long been known that I haven't bothered to look up the reference. it is apparent that apparently it is believed that I think it is clear that clearly it is considered desirable I or we want to it is doubtful that possibly it is evident that it is of interest to note that it is often the case that often it is suggested that I think it is worth pointing out in this context that note that it may be that I think it may, however, be noted that but it should be noted that note that (or leave out) it stands to reason it stands to reason (cliche, avoid) it was observed in the course of the experiments that we observed it's = "it is" or "its"? its = it's join together join kind of Do not use as substitute for "rather" or "something like." lacked the ability to could not large number of many last but not least (avoid) later on later lay A transitive verb, not to be confused with the intransitive verb "lie". You "lie" down, and you "lay" an egg. However, note that the past tense of ``lie'' is ``lay'': Yesterday, I lay down and laid an egg. lead The past tense of the verb "lead" is "led". leave Do not use as substitute for "let:" Let go of my hand! Let it be! led = lead less Use "less" for quantities and "fewer" for numbers. like Substitute by "as" before phrases or clauses: Our love was beautiful, as love was meant to be. liken Avoid using the verb "liken," it is ugly. likewise ! literal = literally literally Do not use to support exaggeration. little data few data little doubt that loan Only use as a noun. "Lend" is a verb. loath = loathe loathe Only use as a verb, "loath" is an adjective. loose As a verb, it means "to release", but it can also be used as adverb. It is not a tense of "lose." loosed = loose loosing = loose lose out Means less than "lose" because of its commonness. low quantity small quantity majority of most make a make an make an adjustment in adjust manner many and diverse (cliche, avoid) may = Do not confuse with "can". may be that meaningful significant or rewrite, because it is an overused word meaningfully = meaningful memoranda "Memorandum" is singular, "memoranda" is plural. memorandum = memoranda might = can might of might have militate against prohibit minor importance mislead = lead misled = lead momento Use memento instead, even if Webster's claims momento is a word. momentos = momento most Do not use as substitute for "almost." mostly (avoid) much data many data nature Omit if redundant. nauseous Synonym for "sickening", do not confuse with the adjective "sick" or the verb "nauseate." near by near, near at hand, close by, hard by need for needless to say (avoid and consider leaving out what follows) neither Should be followed by "nor" instead of "or". nice Use a more exact word. nor Restrict to following "neither", but do not use instead of "or" in negative expressions. normal (weak definition) not under not unique not until notorious = infamous notorious = infamous notoriously = infamous notwithstanding notwithstanding the fact that although number of = a number of obsolete Using obsolete as a verb is ugly. obsoleted = obsolete obsoleting = obsolete occurrence event of great theoretical and practical importance useful of interest of the opinion that of the same opinion of which ! oftentimes often ofttimes often on a daily basis daily on account of because on behalf of for on the basis of by on the grounds that since, because on the occasion on the order of magnitude of about on the part of by, among, for on the part on on the right track (cliche, avoid) on which ! one When used as a pronoun, it must be used consistently: One must manage one's money carefully. one of the most Do not use at the beginning of a paragraph, best avoid at all because it is an overused phrase. ongoing (avoid) only Put "only" right before the word it modifies. oral = verbal orientated oriented otherwise ! over which ! owing to the fact that since, because par for the course (cliche, avoid) perform do payed "Payed" is only used to refer to extending a rope. The past tense of "pay" is "paid." people Do not use with numbers or as substitute for "public". performed done personal opinion opinion personalise (avoid) personalised = personalise personalising = personalise personally (avoid) pertaining to about, on phase Do not use as substitute for "aspect, topic". plum Do not confuse the fruit "plum" with "plumbing" a depth. plumb = plum plumed = plum pluming = plum plums = plum please feel free to (cliche, avoid) pooled together pooled possess Do not use as substitute for "have" or "own." possessed = possess possessing = possess powerful Overused, especially in computer industry press releases. precede Synonym for "to come before," do not confuse with "proceed." previous to, prior to before prior to before pursuant to your request (cliche, avoid) presently (do not use as substitute for "now", restrict to synonym for "soon") prestigious (an overused word) preventative preventive principal (a "principle" is a rule, while a "principal" is a person, when used as a noun, or means "chief", when used as an adjective, and the adverb for both words is spelt "principally") principally = principal principals = principal principle = principal principles = principal principlly = principal proceed to provide for (weak definition) put to use in building build put to use in measuring measure quite rather rather than reason is because reason is that, because reason to believe reason why reason refer = allude reference to this referred = allude referring = allude referred to as called regarding the matter of (cliche, avoid) relative to about register up (means less than "register" because of its commonness) regress back = revert back regressed back = revert back regressing back = revert back regretful (do not use as substitute for "regrettable") regretfully = regretful reinitiate start again reinitiated restarted reinitiating restarting relate (do not use as an intransitive verb: "I get along well with my advisor" instead of "I relate well to my advisor") related = relate relating = relate repeat the same repeat the representative of represents requisite required respective respectively revert back ("revert" means "to go back", so this expression is redundant) reverted back = revert back reverting back = revert back rise to secondly second shall (shall is sometimes used with first person pronouns and the future tense. It expresses something you believe will happen, not something that you are determined to do. A drowning man shouts: "I shall drown, no one will save me!") should of should have sight = site sign up (means less than "sign" because of its commonness) site (a "site" is a place, a "sight" is related to "seeing") situation (rewrite) so (do not use as intensifier) so as to to so on ! so that ! sophisticated sort of (do not use as substitute for "rather" or "something like") slowly but surely (cliche, avoid) small concentration low concentration sufficient enough state (if used as a verb, restrict to the meaning of "express fully or clearly") stated = state stating = state still continue continue still continues continues strata = stratum stratum ("stratum" is singular, "strata" is plural) student body students subsequent to after subsequently to = subsequent to succeed in sufficient number of enough suggested that suggestive of system Frequently used without need. take appropriate take into consideration consider terminate end terminated ended, stopped terminating ending, stopping termination end than (examine sentences containing "than" to insure that they are not missing words: I love my father more than my mother. I love my father more than my mother loves my father. I love my father more than I love my mother) thank you in advance = thanking you in advance thanking you in advance (write "thanking you" or "your attention to this matter would be appreciated" and acknowledge granted favours) the author I the authors we the case that the fact the fact is (avoid) the fact that the fact was (avoid) the foreseeable future soon, the future the fullest possible extent most, completely or fully (or omit) the great majority of most the opinion is advanced that I think the nature the necessity of the order of the point that the reason is because because there is reason to believe I think the question as to whether whether, the question whether the truth is (a bad way to start a sentence) the truth was = the truth is there are (a dead phrase; rewrite the sentence and it will probably improve) there are not many few there is = there are there is no doubt that no doubt, doubtless there was = there are they (do not use as substitute for "each, each one, everybody, every one, anybody, any one, somebody, some one") thirdly third this is a subject which this subject this will acknowledge (cliche, avoid) through the use of by, with through which ! thrust (use sparingly, unless you are writing a romance novel) timely (weak definition) to which ! tortuous ("torturous" involves torture, while "tortuous" merely involves twist) torturous = tortuous transition (only use as a noun) transitioned = transition transitioning = transition transpire (restrict to "become known", do not confuse with "happen" or "occur") transpired = transpire transpiring = transpire try and ("try" should be followed by an infinitive, not the word "and") try out (means less than "try" because of its commonness) type (do not use as synonym for "kind of") under which ! ultimate last unique ("unique" or "uncommon"?) uniquely = unique uniqueness = unique upon which ! upshot use to ("use to" or "used to"?) used for (used for [...] purposes: used for [...]) utilise use utilise use utilised used utilising using varying (use "various" if a finite number of constant instances is meant) was of the opinion that believed we are pleased to advice (cliche, avoid) we have insufficient knowledge we don't know we wish to state (cliche, avoid) we wish to thank we thank varying amounts of varying verbal ("verbal" can be either spoken or written down, "oral" refers to the mouth) very (use sparingly; try to use words that are strong in themselves for emphasis) viewpoint point of view (do not use as substitute for "view, opinion") vital important whether (avoid using "or not" after "whether," unless you mean "regardless of whether") whether or not (restrict to synonym for "regardless of whether" else simply use "whether") which (use "that" if clause is restrictive) which was (often superfluous) while (if used as substitute for "and, but" then replace by semicolon, do not use as substitute for "although" as it leads to ambiguity or absurdity, best use it only in the sense of "during the time that") who is (often superfluous) whom (often incorrectly used for "who") will = shall b win out (means less than "win" because of its commonness) wish to thank thank with regard to concerning, about (or leave out) with respect to about with a view to to with reference to concerning, about with the exception of except with which ! with the aid of with with the possible exception of except with the result that so, therefore without which ! worth pointing out worth while (restrict to actions, do not use for approval and consider using a stronger word) worthwhile (only apply to actions and consider using a stronger word instead) would (use "should" if used as conditional statement in the first person or for "shall" in indirect quotation after a verb in past tense. Consider omitting it for repeated actions) would of would have would seem to indicate indicates you are hereby advised (cliche, avoid) inflammable (better use the preferred synonym "flammable", do not confuse with "combustible") ing behaviour (avoid the term [...]ing behaviour) unwise (avoid words that end in -unwise) wise (avoid words that end in -wise) ize (words ending in -ize tend suggest usage of American spelling) ized (words ending in -ized tend suggest usage of American spelling) izing (words ending in -izing tend suggest usage of American spelling) izes (words ending in -izes tend suggest usage of American spelling) diction-1.14/nl0000644000014400001440000004344213067443010012563 0ustar michaeluser ergens mee op de hoogte zijn contaminatie: ergens van op de hoogte zijn, of ergens mee bekend zijn ben ergens mee op de hoogte = ergens mee op de hoogte zijn bent ergens mee op de hoogte = ergens mee op de hoogte zijn is ergens mee op de hoogte = ergens mee op de hoogte zijn zijn ergens mee op de hoogte = ergens mee op de hoogte zijn was ergens mee op de hoogte = ergens mee op de hoogte zijn waren ergens mee op de hoogte = ergens mee op de hoogte zijn optelefoneren contaminatie: opbellen, of telefoneren goedkoop kosten contaminatie: goedkoop zijn, of weinig kosten Bijgaand sturen wij u wollig taalgebruik: als het er niet ingesloten was, zou je het niet toesturen in staat zijn te kunnen wollig taalgebruik: je bent in staat, of je kan het toestemming dat te mogen wollig taalgebruik: je hebt toestemming, of je mag het met behulp van gaat over zaken of dingen. Met hulp van gaat over personen. met hulp van gaat over personen. Met behulp van over zaken of dingen. schijnbaar betekent 'niet echt'. Blijkbaar betekent 'duidelijk', 'geen twijfel overlatend'. blijkbaar betekent 'duidelijk', 'geen twijfel overlatend'. Schijnbaar betekent 'niet echt'. ovulatie verhaspeling: De operazangeres kreeg een staande applaus. (= ovatie). functioneren verhaspeling: Ik wil vandaag wel als voorzitter functioneren. (= fungeren) geding verhaspeling: Onze belangen komen door deze rare fratsen ernstig in het geding. (= gedrang) geraamd verhaspeling: De regering had een geheim plan geraamd. (= beraamd) gefusilleerd verhaspeling: Ons bedrijf is met een Amerikaans bedrijf gefusilleerd. (= gefuseerd) , een komma introduceert een pauze; aan 'en' gaat alleen een komma vooraf als de pauze nodig is; normaal loopt zin gewoon door ' enkelvoudige ': de apostrof (of weglatingsteken) gebruik je in de volgende situaties: bij meervoud van een woord met de klinker 'i', 'a', 'u', 'o' of 'y' omdat je anders een verkeerde uitspraak van het woord krijgt; voorbeeld: menu's; Bij 's en 't (afkortingen van 'des, en 'het'); voorbeeld: 's morgens; als je een eigennaam met een s-klank schrijft die een bezit aanduidt; voorbeeld: Beatrix' hoed beide Als je verwijst naar zaken of dieren, gebruik je geen 'n'. beiden Als je verwijst naar personen, gebruik je een 'n'. vele Als je verwijst naar zaken of dieren, gebruik je geen 'n'. velen Als je verwijst naar personen, gebruik je een 'n'; voorbeeld: Velen zullen de laatsten zijn. weinigen Als je verwijst naar personen, gebruik je een 'n'; voorbeeld: Slechts weinigen zullen deze opleiding afmaken weinige Als je verwijst naar zaken of dieren, gebruik je geen 'n'. enkele Als je verwijst naar zaken of dieren, gebruik je geen 'n'. enkelen Als je verwijst naar personen, gebruik je een 'n'; voorbeeld: Enkelen zullen de eindstreep niet bereiken. in beschouwing nemen wollig taalgebruik: beschouwen ten uitvoer brengen wollig taalgebruik: uitvoeren in rekening brengen wollig taalgebruik: berekenen in ontwikkeling brengen wollig taalgebruik: ontwikkelen in behandeling nemen wollig taalgebruik: behandelen in behandeling komen wollig taalgebruik: behandeld worden niet gebruik te niet te vaak een ontkenning in een zin geen = niet nooit = niet onwaarschijnlijk = niet beletten = niet verbieden = niet voorkomen de klemtoon bepaalt de betekenis; blijkt die duidelijk uit de zin? welk = ouderwets taalgebruik belemmert de vlotheid van een tekst hetwelk = welk jegens = welk nopen = welk pogen = welk voornemens = welk zulks = welk doch = welk gaarne = welk geschieden = welk thans = welk heden = welk inmiddels = welk ofschoon = welk dienen = welk gelijken = welk gewennen = welk behoeven = welk behoren = welk in principe vaag taalgebruik; is de betekenis van de zin meer concreet te formuleren ten dele = in principe voorlopig = in principe in hoge mate = in principe in zijn algemeenheid = in principe in grote lijnen = in principe min of meer = in principe tot op zekere hoogte = in principe ten aanzien van bedoelt u op, over, tegen, van of voor? tegen de achtergrond van voor ten behoeve van voor met betrekking tot bedoelt u voor of over? als gevolg van door onder invloed van door door middel van door met het oog op om in verband met bedoelt u omdat of wegens aspect vaag taalgebruik; is de betekenis van het woord meer concreet te formuleren dimensie = aspect element = aspect factor = aspect gebeuren = aspect sfeer = aspect afparaferen contaminatie: aftekenen, of paraferen akkoord zijn contaminatie: het eens zijn, of akkoord gaan als gewoonte contaminatie: als gewoonlijk, of uit gewoonte zich bedenken contaminatie: bedenken, of zich realiseren zich iets kunnen begrijpen contaminatie: zich iets kunnen voorstellen, of iets kunnen begrijpen behoren tot een van de contaminatie: behoren tot de, of een van de zijn zijn beklag indienen contaminatie: zijn beklag doen, of een klacht indienen belangstelling trekken contaminatie: belangstelling wekken, of belangstellenden trekken uit eigener beweging contaminatie: uit eigen beweging, of eigener beweging bijsluiten contaminatie: bijvoegen, of insluiten ten gehore komen contaminatie: ten gehore brengen, of ter ore komen voor twee weken geleden contaminatie: voor twee weken, of twee weken geleden gelijkstellen aan contaminatie: gelijkstellen met, of gelijk zijn aan bij gemis aan contaminatie: bij gemis van, of bij gebrek aan gepaard gaan aan contaminatie: gepaard gaan met, of gepaard gaan met, of gekoppeld zijn aan gevaar kunnen contaminatie: gevaar lopen, of kwaad kunnen gewoonlijk plegen contaminatie: plegen, of gewoonlijk zijn goedgevig contaminatie: goedgeefs, of vrijgevig op de hoogte met contaminatie: op de hoogte van, of bekend met interesse hebben in contaminatie: interesse hebben voor, of geïnteresseerd zijn in als een bus kloppen contaminatie: als een bus sluiten, of kloppen kwijt maken contaminatie: kwijt zijn, of zoekmaken aan den lande bewezen contaminatie: aan het land bewezen, of den lande bewezen lezen uit contaminatie: lezen in, of maken op uit, of begrijpen uit luidop contaminatie: luid, of hardop met zich meebrengen contaminatie: met zich brengen, of meebrengen navolgeling contaminatie: navolger, of volgeling onmeedogenloos contaminatie: onmeedogend, of meedogenloos onontkomelijk contaminatie: onontkoombaar, of onvermijdelijk ontlenen uit contaminatie: ontlenen aan, of overnemen uit hetzelfde geldt ook voor contaminatie: hetzelfde geldt voor, of dat geldt ook voor de oorzaak is te wijten aan contaminatie: de oorzaak is, of het is te wijten aan oppassen c: oppassen voor, of letten op opstarten contaminatie: starten, of op gang brengen zo optimaal mogelijk zo goed mogelijk, of optimaal overnieuw contaminatie: over, of opnieuw plegen = gewoonlijk plegen pleidooi voeren contaminatie: pleidooi houden, of proces voeren plotsklaps contaminatie: plotseling, of eensklaps goedkope prijs contaminatie: goedkoop artikel en duur artikel, of lage prijs en hoge prijs dure prijs = goedkope prijs laag artikel = goedkope prijs hoog artikel = goedkope prijs schade betalen contaminatie: schade vergoeden, of schadevergoeding betalen schuld zijn aan contaminatie: schuld hebben aan, of schuldig zijn aan somstijds contaminatie: soms, of somtijds (verouderd) stopleggen contaminatie: stopzetten, of stilleggen voor een jaar terug contaminatie: voor een jaar, of een jaar terug uitprofiteren contaminatie: uitbuiten, of profiteren per vergissing contaminatie: per ongeluk en per abuis, of bij vergissing verloren zijn contaminatie: verloren hebben, of kwijt zijn geen verschil uitmaken contaminatie: geen verschil maken, of niets uitmaken verveelvuldigen contaminatie: vermenigvuldigen, of verveelvoudigen volgens mijn mening contaminatie: volgens mij, of naar mijn mening licht wegen contaminatie: licht of zwaar zijn, of weinig en veel wegen zwaar wegen = licht wegen weinig zijn = licht wegen veel zijn = licht wegen zoiets dergelijks contaminatie: zoiets, of iets dergelijks eerste aanbetaling pleonasme: aanbetaling, of eerste betaling nieuwe aanwinst pleonasme: aanwinst (is altijs nieuw; wel mogelijk: nieuwste aanwinst) alvorens pleonasme: kan niet gebruikt worden in combinatie met eerst voordat = alvorens eerst = alvorens ander alternatief pleonasme: alternatief, of andere mogelijkheid overbodige ballast pleonasme: ballast is altijd overbodig behalve pleonasme: kan niet gebruikt worden in combinatie met ook beperken pleonasme: kan niet gebruikt worden in combinatie met slechts, alleen, of uitsluitend mondeling bespreken pleonasme: mondeling is overbodig dodelijk verongelukken pleonasme: verongelukken is altijd dodelijk achteraf evalueren evalueren is altijd achteraf naar het buitenland exporteren pleonasme: exporteren is altijd naar het buitenland genoodzaakt moeten zijn pleonasme: genoodzaakt zijn, of moeten voorlopig gehandhaafd blijven pleonasme: voorlopig gehandhaafd worden, of voorlopig van kracht blijven herhalen pleonasme: kan niet gebruikt worden in combinatie met weer of nog eens, tenzij het de tweede of derde keer betreft herstellen = herhalen heropenen = herhalen hervatten = herhalen importeren uit het buitenland pleonasme: importeren is altijd uit het buitenland invoeren = importeren uit het buitenland hierbij insluiten pleonasme: hierbij sturen, of insluiten in staat zijn te kunnen pleonasme: in staat zijn, of kunnen, of mogelijk zijn mogelijk zijn te kunnen = in staat zijn te kunnen uiterste limiet pleonasme: uiterste moet te vervallen misschien bestaat de mogelijkheid pleonasme: misschien, of mogelijk, of de mogelijkheid bestaat, of het is mogelijk iets te mogen doen pleonasme: bij toestemming hebben of het recht te hebben vervalt mogen onnodige omhaal pleonasme: onnodige moet vervallen een reserve overblijven pleonasme: er is of blijft een reserve, of er blijft over plannen voor de toekomst pleonasme: voor de toekomst is overbodig acherstallige schuld pleonasme: acherstallige betaling, of schuld traag tempo pleonasme: traagheid of laag tempo nader toelichten pleonasme: nader vervalt, tenzij de toelichting later pas gebeurt uiterlijke schijn pleonasme: schijn is altijd uiterlijk opzettelijk uitlokken pleonasme: uitlokken is altijd opzettelijk tot later uitstellen pleonasme: tot later moet vervallen unaniem pleonasme: unaniem in combinatie met allen is overbodig verzoeken te willen pleonasme: willen is overbodig, of verzoeken is overbodig later volgen pleonasme: later is overbodig volstaan pleonasme: in combinatie met slechts/alleen/uitsluitend is slechts/alleen/uitsluitend overbodig vooraf waarschuwen pleonasme: waarschuwen is altijd vooraf vooruit voorspellen pleonasme: vooruit is overbodig verkopen aan ga: verkopen tegen of voor aanduiden ga: vermelden, aangeven, of opgeven aangeduid ga: aangewezen aansprakelijk houden a: aansprakelijk stellen zich abonneren aan ga: zich abonneren op af ge: in de zin van vanaf een plaats of tijd afbouwen ge: (gedeeltelijk) opheffen, verminderen of inkrimpen akkoord a: alleen in combinatie met gaan mogelijk akkoord zijn ga: ermee akkoord gaan, of het eens zijn al a: in de zin van alles (dat is al) angst hebben ge: bang zijn of in angst zitten baanbreken ge: doorbreken, ingang vinden, of veld winnen; ingeburgerd: baanbrekend onderzoek band ge: in de zin van deel van een boek bedenken ga: in combinatie met zich: bedenken of zich realiseren beduidend ge: aanzienlijk, aanmerkelijk, belangrijk, of van betekenis bemeesteren ge: overmeesteren, zich meester maken van, overwinnen, veroveren, of bemachtigen bemerking ge: aanmerking of ook wel voor opmerking benutten ge: gebruiken; alleen bij sterke nadruk kan benutten toegepast worden berechtigd ge:gerechtigd, bevoegd, of het recht hebbend berichten ge: antwoord; wel kan bericht (enkelvoud) ontvangen betrachten ge: bekijken, of beschouwen; wel kan plicht betrachten (volbrengen doen) billijk ge: in de betekenis van lage; lage prijzen; wel in de betekenis van redelijke prijzen centraal ge: aan elkaar als in centraalbestuur; moet zijn twee woorden chemiker ge: chemicus, of scheikundige daarom ge: daarom en omdat in dezelfde zin gebruikt; daarom is overbodig dame ga: alleen juist in de betekenis van partner, aan tafel of bal of iets dergelijks deelname ge: deelneming inachtname ge: inachtneming inbslagname ge: inbeslagneming ingebruikname ge: ingebruikneming, het in gebruik nemen kennisname ge: kennisneming terugname ge: terugneming, of het terugnemen derdens ge: ten derde doel ge: in de betekenis van zin of nut doen ga: in de betekis van laten doorvoeren ge: in de betekis van een vergelijking doortrekken duldzaam ge: verdraagzaam eerst recht ge: pas echt, of pas goed eerstens ge: ten eerste eigenen ge: geschikt zijn, zich lenen voor een eind aan iets stellen ga: een eind ana iets maken eindejaarskoop ga: oudejaarskoop eindejaarskoopje = eindejaarverkoop eindejaaruitverkoop = eindejaarverkoop eindejaarspremie = eindejaarverkoop erkennen a: bevestigen in de betekenis van de ontvangst van een brief bevestigen evenzogoed ge: even goed; kan wel de betekenis van ondanks dat explosieveilig ge: geen explosiegevaar opleverend fout ga: schuld, in zin dat is zijn fout niet frontpagina a: voorpagina in gang zetten ge, ga: op gang brengen, of aan de gang brengen in gang brengen = in gang zetten gasgevuld ge: met gas gevuld of met gasvulling gedood worden a: om het leven komen, omkomen, verongelukken, of sneuvelen geheimvol ge: geheimzinnig, raadselacchtig geheimenisvol = geheimvol glansvol ge: glansrijk prachtvol ge: prachtig stemmingsvol ge: met of in een aangename stemming wondervol ge: wonderlijk, of prachtig gekend ga: in de betekenis van bekend schrijver geld maken a: (veel) geld verdienen tot gelding brengen ge: ten uitvoer brengen, tot hun recht laten komen, of doen uitkomen met gelijke post ge: met dezelfde post, separaat mooi weer geven ge: mooi weer zijn een glanzende rol ge: glansrol, schitterende rol goudgerand ge: met een gouden rand goudomrand = goudgerand grootbank ge: grote bank grootstad ge: grote stad zich handelen om ge: betreffen, gaan om, sprake zijn van, of te maken hebben met handen schudden a: de hand geven hogergenoemd ga: bovengenoemd, bovenvermeld, hierboven genoemd, of hierboven vermeld hoogfijn ge: eerste kwaliteit, zeer fijne kwaliteit, allerfijnste kwaliteit zich informeren ga: zich op de hoogte stellen, of informeren naar vrije ingang ga: vrije toetoegang, of toegang vrij verboden ingang ga: verboden toegang, of toegang verboden instrumentaalmuziek ge: instrumentale muziek zijn te ge: in de betekenis van moeten worden; wel correct is kan worden leven a: in de betekenis van wonen zich lonen ge: de moeite lonen maagbezwaren ge: maagklachten of maagkwaal maaglijden = maagbezwaren maken ge: in de betekenis van zijn in een rekensom koffie maken a: koffie of the zetten thee maken = koffie maken maximaalbedrag ge: maximaal of mninimaal hoort losgeschreven (maximaal bedrag) maximaaltemperatuur = maximaalbedrag maximaalhoeveelheid = maximaalbedrag meer beroemd a:, ga: beroemder; wel correct meer beroemd dan geliefd meer bekend = meer beroemd meest beroemd = meer beroemd meest bekend = meer beroemd meest opvallend = meer beroemd meer of minder a: min of meer meermalig ge: herhaald middels ge: door middel van, met behulp van, met minimaalbedrag = maximaalbedrag minimaaltemperatuur = maximaalbedrag missen a: in de betekenis van ontbreken modisch ge: modieus, modern nemen ga: in de betekenis van houden voor nevenbetrekking ge: bijbetrekking; wel correct als met neven- gelijkwaardigheid wordt bedoeld nevenbedoeling = nevenbetrekking nevenoorzaak = nevenbetrekking nevenbedrijf = nevenbetrekking nieuwkomer a: nieuweling ombouw ge: verbouwing, of verandering van bouw omleggen ge: in de betekenis van doden, neerschieten onbedingd ge: absoluut, onvoorwaardelijk onderlijnen ga: onderstrepen, of de nadruk leggen op opvoeren: ge: bijschrijven, vermelden overleven a: het overleven per direct ge: direct recentelijk a: recent, onlangs, kort geleden, of in recente tijd richtig ge: juist of correct basedowse ziekte ge: ziekte van Basedow berlaagse stijl ge: stijl van Berlage kantse wijsbegeerte ge: wijsbegeerte van Kant weilse ziekte ge: ziekte van Weil slagwoord ge: trefwoord, of woord dat inslaat spoedigst ge: zo spoedig mogelijk, ten spoedigste, zo snel mogelijk stellen ga: maken, in de betekenis van een eind aan iets maken techniker ge: technicus toelaten ga: mogelijk maken, in staat stellen, de gelegenheid bieden, of de mogelijkheid bieden toondicht ge: (muzikale) compositie tussenkomen ga: tussenbeide komen, ingrijpen, of zich mengen in van een grote schoonheid ga: erg mooi de mogelijkheden zijn veel a: de mogelijkheden zijn talrijk, of er zijn vele mogelijkheden in vergelijk met ge: vergeleken met, of in vergelijking met verhoudingen ge: in de betekenis van omstandigheden, toestand(en), voorwaarden of gesteldheid akkoord vertrouwen a: ermee eens gaan vocaalmuziek ge: vocale muziek een product voeren ge: verkopen, handelen in, of in de handel brengen de bedoeling ligt voor ge: het is de bedoeling, de bedoeling bestaat, of men heeft de bedoeling voorliggend ge: onderhavig, genoemd, bedoeld, deze of dit onder de vorm van ga: in vorm van vorstenpaar ge: koninklijk (vorstelijk) paar vroeger of later a: vroeg of laat vroegzomer ge: vroege zomer of begin van de zomer wateroplosbaar ge: in water oplosbaar bedenken we wel ga: bedenk wel, we moeten wel bedeneken, of laten we wel bedenken realiseren we ons = bedenken we wel stellen we ons voor = bedenken we wel weermacht ge: strijdkrachten weersafhankelijk ge: afhankelijk van het weer dat is te zeggen ga: dat wil zeggen zichzelf vergissen ge:, a: zich vegissen ziedaar ga: dat is de oorzaak van, dat is nu zwarthandel ge: zwarte handel of sluikhandel heid vermijd woorden die eindigen op -heid als ze een verzelfstandigd werkwoord betreffen ing vermijd woorden die eindigen op -ing als ze een verzelfstandigd werkwoord betreffen diction-1.14/test/0000755000014400001440000000000013152624453013206 5ustar michaeluserdiction-1.14/test/test010000755000014400001440000000047713067443010014255 0ustar michaeluser#!/bin/sh echo -n $0: 'Two regular sentences... ' cat >test.in <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test110000755000014400001440000000055413152620561014255 0ustar michaeluser#!/bin/sh echo -n $0: 'Fill words... ' cat >test.in <test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test120000755000014400001440000000064613152624443014263 0ustar michaeluser#!/bin/sh echo -n $0: 'Longest match... ' cat >test.in <test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test030000755000014400001440000000050013067443010014242 0ustar michaeluser#!/bin/sh echo -n $0: 'Beginning ellipsis... ' cat >test.in <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test050000755000014400001440000000063413067443010014254 0ustar michaeluser#!/bin/sh echo -n $0: 'Stemming... ' cat >test.in <test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/rundiction.in0000755000014400001440000000006513067443010015711 0ustar michaeluser#!/bin/sh @VALGRIND@ ./diction -f /dev/null -n "$@" diction-1.14/test/test070000755000014400001440000000043613067443010014256 0ustar michaeluser#!/bin/sh echo -n $0: 'End of sentence 1... ' cat >test.in <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test090000755000014400001440000000044113067443010014254 0ustar michaeluser#!/bin/sh echo -n $0: 'End of sentence 3... ' cat >test.in <<'eof' "I... really don't know." eof cat >test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test040000755000014400001440000000047413067443010014255 0ustar michaeluser#!/bin/sh echo -n $0: 'Omission ellipsis... ' cat >test.in <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test080000755000014400001440000000045413067443010014257 0ustar michaeluser#!/bin/sh echo -n $0: 'End of sentence 2... ' cat >test.in <<'eof' "A sentence inside logical quoting." eof cat >test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test060000755000014400001440000000072613067443010014257 0ustar michaeluser#!/bin/sh echo -n $0: 'Recovery... ' cat >test.in <test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test100000755000014400001440000000063613067443010014252 0ustar michaeluser#!/bin/sh echo -n $0: 'Suffix matching... ' cat >test.in <<'eof' It is not wise to use foowise. eof cat >test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/test/test020000755000014400001440000000047213067443010014251 0ustar michaeluser#!/bin/sh echo -n $0: 'Ending ellipsis... ' cat >test.in <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi diction-1.14/config.guess0000755000014400001440000013036113067443010014544 0ustar michaeluser#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp 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` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: diction-1.14/config.h.in0000644000014400001440000000042713067443010014246 0ustar michaeluser/* Define if you have the strerror function. */ #undef HAVE_STRERROR /* Define if realloc(0,n) fails. */ #undef BROKEN_REALLOC /* Define if you have the msgfmt(1) program and the gettext(3) function. */ #undef HAVE_GETTEXT /* The version string. */ #define VERSION @VERSION@ diction-1.14/config.sub0000755000014400001440000010437613067443010014216 0ustar michaeluser#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. timestamp='2010-09-11' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile-* | tilegx-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; # This must be matched before tile*. tilegx*) basic_machine=tilegx-unknown os=-linux-gnu ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: diction-1.14/configure.in0000644000014400001440000000325513152620751014542 0ustar michaeluserAC_INIT(diction.c) AC_CONFIG_HEADER(config.h) AC_CANONICAL_HOST VERSION=1.14 UPDATED='September 2, 2017' case $host in hppa1.1-hp-hpux11.00) EXTRA_CFLAGS='+O2 +Onolimit -D_XOPEN_SOURCE_EXTENDED ' EXTRA_LDFLAGS='-z ' EXTRA_GCFLAGS='-D_XOPEN_SOURCE_EXTENDED ' EXTRA_GLDFLAGS='-Wl,-z ' ;; esac AC_PROG_CC if test "$GCC" = yes then CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common" LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g" else CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}" fi AC_ARG_WITH(valgrind, [ --with-valgrind run regression tests with valgrind], [VALGRIND="valgrind" AC_SUBST(VALGRIND)] ) AC_PROG_INSTALL AC_CHECK_FUNCS(strerror) AC_SEARCH_LIBS(regcomp, [regex pcre]) AC_MSG_CHECKING(for broken realloc) AC_TRY_RUN([#include #include #include static void sigsegv(int n) { exit(1); } int main(void) { signal(SIGSEGV,sigsegv); realloc((void*)0,1); exit(0); } ],AC_MSG_RESULT(no),AC_DEFINE(BROKEN_REALLOC) AC_MSG_RESULT(yes)) USE_NLS=no AC_CHECK_PROG(MSGFMT,msgfmt,yes,no) if test "$MSGFMT" = yes then AC_CHECK_HEADERS(libintl.h,[LIBINTL=yes]) if test "$LIBINTL" = yes then AC_SEARCH_LIBS(gettext,intl,[AC_DEFINE(HAVE_GETTEXT) USE_NLS=yes]) fi fi AC_DEFINE_UNQUOTED(VERSION,"$VERSION") AC_SUBST(VERSION) AC_SUBST(UPDATED) eval DATADIR=$datadir AC_SUBST(DATADIR) AC_SUBST(USE_NLS) AC_OUTPUT(Makefile diction.1 diction.texi diction.spec style.1 test/rundiction) diction-1.14/de.po0000644000014400001440000002755713152624415013175 0ustar michaelusermsgid "" msgstr "" "Project-Id-Version: diction 1.03\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-09-02 23:56+0200\n" "PO-Revision-Date: 2002-11-09 18:26+0100\n" "Last-Translator: Michael Haardt \n" "Language-Team: Deutsch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #: diction.c:111 diction.c:471 #, c-format msgid "diction: Opening `%s' failed (%s).\n" msgstr "diction: Öffnen der Datei `%s' nicht möglich (%s).\n" #: diction.c:129 diction.c:143 diction.c:165 diction.c:183 #, c-format msgid "diction: out of memory.\n" msgstr "diction: verfügbarer Hauptspeicher ist erschöpft.\n" #: diction.c:175 #, c-format msgid "diction: Compiling regular expression `%s' failed (%s).\n" msgstr "" "diction: Compilieren des regulären Ausdrucks `%s' nicht möglich (%s).\n" #: diction.c:325 msgid "Double word." msgstr "Doppeltes Wort." #: diction.c:348 msgid "" "Usage: diction [-b] [-d] [-f file [-n|-L language]] [-q] [file ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file file [--no-default-file|--language]] [--quiet] " "[file ...]\n" " diction --version\n" msgstr "" "Aufruf: diction [-b] [-d] [-f Datei [-n|-L Sprache]] [-q] [Datei ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file Datei [--no-default-file|--language]] [--quiet]\n" " [Datei ...]\n" " diction --version\n" #: diction.c:390 #, c-format msgid "diction: Invalid string `..' in default phrase language `%s'.\n" msgstr "diction: Ungültige Zeichenkette `..' in Default Phrasensprache `%s'.\n" #: diction.c:434 msgid "Try `diction -h' or `diction --help' for more information.\n" msgstr "" "Versuchen Sie `diction -h' oder `diction --help' für weitere Informationen.\n" #: diction.c:441 msgid "" "Print wordy and commonly misused phrases in sentences.\n" "\n" msgstr "Gibt wortreiche und häufig falsch verwendete Phrasen aus.\n" #: diction.c:442 msgid "" "-b, --beginner complain about typical mistakes of beginners\n" msgstr "" "-b, --beginner Beschwere Dich über typische Anfängerfehler\n" #: diction.c:443 msgid "-d, --ignore-double-words do not complain about double words\n" msgstr "-d, --ignore-double-words Beschwere Dich nicht über doppelte Worte\n" #: diction.c:444 msgid "-s, --suggest suggest better wording\n" msgstr "-s, --suggest Schlage eine bessere Formulierung vor.\n" #: diction.c:445 msgid "-f, --file also read the specified database\n" msgstr "-f, --file Lies diese Datenbank zusätzlich\n" #: diction.c:446 msgid "-n, --no-default-file do not read the default phrase file\n" msgstr "-n, --no-default-file Lies die Standard-Phrasendatei nicht\n" #: diction.c:447 msgid "-L, --language set document language\n" msgstr "" "-L, --language Verwende die angegebene Sprache als " "Dokumentensprache\n" #: diction.c:448 msgid "-q, --quiet do not print input file name\n" msgstr "-q, --quiet Gib keine Eingabedateinamen aus\n" #: diction.c:449 msgid "-h, --help print this message\n" msgstr "-h, --help Diesen Text ausgeben\n" #: diction.c:450 msgid " --version print the version\n" msgstr " --version Die Version ausgeben\n" #: diction.c:452 style.c:1102 msgid "Report bugs to .\n" msgstr "Teilen Sie Fehler mit.\n" #: diction.c:482 style.c:1122 #, c-format msgid "No sentences found.\n" msgstr "Keine Sätze gefunden.\n" #: diction.c:486 #, c-format msgid "No phrases " msgstr "Keine Phrasen " #: diction.c:487 #, c-format msgid "1 phrase " msgstr "Eine Phrase " #: diction.c:488 #, c-format msgid "%d phrases " msgstr "%d Phrasen " #: diction.c:489 #, c-format msgid "in 1 sentence found.\n" msgstr "in einem Satz gefunden.\n" #: diction.c:490 #, c-format msgid "in %d sentences found.\n" msgstr "in %d Sätzen gefunden.\n" #: getopt.c:571 getopt.c:587 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "%s: Option `%s' is mehrdeutig.\n" #: getopt.c:620 getopt.c:624 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s: Option `--%s' erlaubt kein Argument.\n" #: getopt.c:633 getopt.c:638 #, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "%s: Option `%c%s' erlaubt kein Argument.\n" #: getopt.c:681 getopt.c:700 getopt.c:1016 getopt.c:1035 #, c-format msgid "%s: option `%s' requires an argument\n" msgstr "%s: Option `%s' benötigt ein Argument.\n" #: getopt.c:738 getopt.c:741 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s: Unbekannte Option `--%s'\n" #: getopt.c:749 getopt.c:752 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "%s: Unbekannte Option `%c%s'\n" #: getopt.c:804 getopt.c:807 #, c-format msgid "%s: illegal option -- %c\n" msgstr "%s: Ungültige Option -- %c\n" #: getopt.c:813 getopt.c:816 #, c-format msgid "%s: invalid option -- %c\n" msgstr "%s: Ungültige Option -- %c\n" #: getopt.c:868 getopt.c:884 getopt.c:1088 getopt.c:1106 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "%s: Option benötigt ein Argument -- %c\n" #: getopt.c:937 getopt.c:953 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "%s: Option `-W %s' ist mehrdeutig\n" #: getopt.c:977 getopt.c:995 #, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "%s: Option `-W %s' erlaubt kein Argument\n" #: sentence.c:204 #, c-format msgid "%s: internal error, compiling a regular expression failed (%s).\n" msgstr "" "%s: interner Fehler, compilieren eines regulären Ausdrucks nicht möglich (%" "s).\n" #: sentence.c:241 #, c-format msgid "%s: increasing sentence buffer failed: %s\n" msgstr "%s: vergrößern des Satz-Puffers fehlgeschlagen: %s\n" #: style.c:72 style.c:86 #, c-format msgid "style: out of memory\n" msgstr "style: kein zusätzlicher Hauptspeicher verfügbar\n" #: style.c:988 msgid "" "Usage: style [-L language] [-l length] [-r ari] [file ...]\n" " style [--language language] [--print-long length] [--print-ari ari]\n" " [file ...]\n" " style --version\n" msgstr "" "Aufruf: style [-L Sprache] [-l Länge] [-r ari] [Dateiname ...]\n" " style [--language Sprache] [--print-long Länge] [--print-ari ari]\n" " [Dateiname ...]\n" " style --version\n" #: style.c:1046 #, c-format msgid "style: Incorrect language option `%s'.\n" msgstr "style: Falsche Dokumentensprache `%s'\n" #: style.c:1082 msgid "Try style -h|--help for more information.\n" msgstr "style --help gibt weitere Informationen.\n" #: style.c:1089 msgid "" "Analyse surface characteristics of a document.\n" "\n" msgstr "Analysiert oberflächliche Merkmale eines Dokumentes.\n" #: style.c:1090 msgid "" "-L, --language set the document language.\n" "-l, --print-long print all sentences longer than words\n" "-r, --print-ari print all sentences with an ARI greater than than " "\n" "-p, --print-passive print all sentences phrased in the passive voice\n" "-N, --print-nom print all sentences containing nominalizations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing nominalizations\n" msgstr "" "-L, --language Setze die Dokumentensprache\n" "-l, --print-long Ausgabe aller Sätze länger als Wörter\n" "-r, --print-ari Ausgabe aller Sätze mit einer ARI größer als \n" "-p, --print-passive Ausgabe passiv formulierter Sätze\n" "-N, --print-nom print all sentences containing nominalizations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing nominalizations\n" "-h, --help Anzeigen dieser Hilfe\n" " --version Ausgabe der Versionsinformation\n" #: style.c:1098 msgid "" "-h, --help print this message\n" " --version print the version\n" msgstr "" "-h, --help Diesen Text ausgeben\n" " --version Die Version ausgeben\n" #: style.c:1112 #, c-format msgid "style: Opening `%s' failed (%s).\n" msgstr "style: Öffnen der Datei `%s' nicht möglich (%s).\n" #: style.c:1131 #, c-format msgid "readability grades:\n" msgstr "Lesbarkeits-Stufen:\n" #: style.c:1136 msgid "/100 (plain English)" msgstr "/100 (normales Englisch)" #: style.c:1136 msgid "/100" msgstr "/100" #: style.c:1141 style.c:1146 #, c-format msgid "below school year 5\n" msgstr "niedriger als das fünfte Schuljahr\n" #: style.c:1142 #, c-format msgid "higher than school year 10\n" msgstr "höher als das zehnte Schuljahr\n" #: style.c:1143 style.c:1148 #, c-format msgid "school year %d\n" msgstr "%d. Schuljahr\n" #: style.c:1145 msgid "Lix" msgstr "Lix" #: style.c:1147 #, c-format msgid "higher than school year 11\n" msgstr "höher als das 11. Schuljahr\n" #: style.c:1149 msgid "SMOG-Grading" msgstr "SMOG-Grading" #: style.c:1151 #, c-format msgid "sentence info:\n" msgstr "Satz-Information:\n" #: style.c:1152 #, c-format msgid " %d characters\n" msgstr " %d Zeichen\n" #: style.c:1153 #, c-format msgid " %d words, average length %.2f characters = %.2f syllables\n" msgstr " %d Worte, durschnittliche Länge %.2f Zeichen = %.2f Silben\n" #: style.c:1154 #, c-format msgid " %d sentences, average length %.1f words\n" msgstr " %d Sätze, durchschnittliche Länge %.1f Worte\n" #: style.c:1158 #, c-format msgid " %d%% (%d) short sentences (at most %d words)\n" msgstr " %d%% (%d) kurze Sätze (hoechstens %d Worte)\n" #: style.c:1161 #, c-format msgid " %d%% (%d) long sentences (at least %d words)\n" msgstr " %d%% (%d) lange Sätze (mindestens %d Worte)\n" #: style.c:1162 #, c-format msgid " %d paragraphs, average length %.1f sentences\n" msgstr " %d Absätze, durschnittliche Länge %.1f Sätze\n" #: style.c:1163 #, c-format msgid " %d%% (%d) questions\n" msgstr " %d%% (%d) Fragen\n" #: style.c:1164 #, c-format msgid " %d%% (%d) passive sentences\n" msgstr " %d%% (%d) passive Sätze\n" #: style.c:1165 #, c-format msgid "" " longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n" msgstr "" " Längster Satz: %d Worte (Satz %d)\n" " Kürzester Satz: %d Worte (Satz %d)\n" #. #. Missing output: #. #. sentence types: #. simple 100% (1) complex 0% (0) #. compound 0% (0) compound-complex 0% (0) #. word usage: #. verb types as % of total verbs #. tobe 100% (1) aux 0% (0) inf 0% (0) #. passives as % of non-inf verbs 0% (0) #. types as % of total #. prep 0.0% (0) conj 0.0% (0) adv 0.0% (0) #. noun 25.0% (1) adj 25.0% (1) pron 25.0% (1) #. nominalizations 0 % (0) #. #: style.c:1182 #, c-format msgid "word usage:\n" msgstr "Wortwahl:\n" #: style.c:1183 #, c-format msgid " verb types:\n" msgstr " Verb Typen:\n" #: style.c:1184 #, c-format msgid " to be (%d) auxiliary (%d) \n" msgstr " \"sein\" (%d) Hilfsverb (%d) \n" #: style.c:1185 #, c-format msgid " types as %% of total:\n" msgstr " Typ in %% der Gesamtzahl:\n" #: style.c:1186 #, c-format msgid "" " conjunctions %1.f%% (%d) pronouns %1.f%% (%d) prepositions %1.f%% (%" "d)\n" msgstr "" " Konjunktionen %1.f%% (%d) Pronomen %1.f%% (%d) Präpositionen %1.f%% " "(%d)\n" #: style.c:1191 #, c-format msgid " nominalizations %1.f%% (%d)\n" msgstr " Substantivierungen %1.f%% (%d)\n" #: style.c:1194 #, c-format msgid "sentence beginnings:\n" msgstr "Satzanfang:\n" #: style.c:1195 #, c-format msgid " pronoun (%d) interrogative pronoun (%d) article (%d)\n" msgstr " Pronomen (%d) Fragepronomen (%d) Artikel (%d)\n" #: style.c:1196 #, c-format msgid "" " subordinating conjunction (%d) conjunction (%d) preposition (%d)\n" msgstr "" " untergeordnete Konjunktion (%d) Konjunktion (%d) Präposition (%d)\n" diction-1.14/diction.1.in0000644000014400001440000001274713152607156014363 0ustar michaeluser.TH DICTION 1 "@UPDATED@" "GNU" "User commands" .SH NAME \"{{{roff}}}\"{{{ diction \- print wordy and commonly misused phrases in sentences .\"}}} .SH SYNOPSIS \"{{{ .ad l .B diction .RB [ \-b ] .RB [ \-d ] .RB [ \-f .IR file .RB [ \-n | \-L .IR language ]] .RI [ file ...] .ad b .br .ad l .B diction .RB [ \-\-beginner ] .RB [ \-\-ignore-double-words ] .RB [ \-\-file .IR file .RB [ \-\-no-default-file | \-\-language .IR language ]] .RI [ file ...] .ad b .br .ad l .B diction .BR \-h | \-\-help .ad b .br .ad l .B diction \-\-version .ad b .\"}}} .SH DESCRIPTION \"{{{ \fBDiction\fP finds all sentences in a document that contain phrases from a database of frequently misused, bad or wordy diction. It further checks for double words. If no files are given, the document is read from standard input. Each found phrase is enclosed in \fB[ ]\fP (brackets). Suggestions and advice, if any and if asked for, are printed headed by a right arrow \fB->\fP. A sentence is a sequence of words, that starts with a capitalised word and ends with a full stop, double colon, question mark or exclaimation mark. A single letter followed by a dot is considered an abbreviation, so it does not terminate a sentence. Various multi-letter abbreviations are recognized, they do not terminate a sentence as well, neither do fractional numbers. .PP \fBDiction\fP understands \fIcpp\fP(1) \fB#line\fP lines for being able to give precise locations when printing sentences. .\"}}} .SH OPTIONS \"{{{ .IP "\fB\-b\fP, \fB\-\-beginner\fP" Complain about mistakes typically made by beginners. .IP "\fB\-d\fP, \fB\-\-ignore-double-words\fP" Ignore double words and do not complain about them. .IP "\fB\-s\fP, \fB\-\-suggest\fP" Suggest better wording, if any. .IP "\fB\-f\fP \fIfile\fP, \fB\-\-file\fP \fIfile\fP" Read the user specified database from the specified \fIfile\fP in addition to the default database. .IP "\fB\-n\fP, \fB\-\-no-default-file\fP" Do not read the default database, so only the user-specified database is used. .IP "\fB\-L\fP \fIlanguage\fP, \fB\-\-language\fP \fIlanguage\fP" Set the phrase file language (\fPde\fP, \fBen\fP, \fBnl\fP). .IP "\fB\-h\fP, \fB\-\-help\fP" Print a short usage message. .IP \fB\-\-version\fP Print the version. .\"}}} .SH ERRORS \"{{{ On usage errors, 1 is returned. Termination caused by lack of memory is signalled by exit code 2. .\"}}} .SH EXAMPLE \"{{{ The following example first removes all roff constructs and headers from a document and feeds the result to diction with a German database: .RS .sp deroff -s file.mm | diction -L de | fmt .RE .\"}}} .SH ENVIRONMENT \"{{{ .IP "\fBLC_MESSAGES\fP=\fBde\fP\^|\^\fBen\fP\^|\^\fBnl\fP" specifies the message language and is also used as default for the phrase language. The default language is \fBen\fP. .\"}}} .SH FILES \"{{{ .nf @DATADIR@/diction/* databases for various languages .fi .PP The file consists of lines, one per entry. Each line is divided by one or two tabs into two parts: Left is the text to match and right is the suggestion. The text to match either starts with a space to match a full word or with letters to match suffixes. If it ends with a tilde, it matches a prefix. .PP The suggestion may be empty to mark fill words, contain an explaination or start with an equal sign followed by text to match for referring to the explaination of that text. The right part can consist of an exclamation mark to mark exceptions that should not be matched. .PP If both parts are separated by two tabs, then this entry concerns mistakes typically made by beginners. .PP Empty lines or lines starting with a hash are ignored. .\"}}} .SH AUTHOR \"{{{ This program is GNU software, copyright 1997\(en2017 Michael Haardt . .PP The english phrase file contains contributions by Wil Baden, Kimberly Hanks Gary D. Kline, Greg Lindahl , Beth Morris and Jeremy C. Reed. The dutch phrase file was contributed by Hans Lodder. .PP 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. .PP 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. .PP You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\"}}} .SH HISTORY \"{{{ There has been a diction command on old UNIX systems, which is now part of the AT&T DWB package. The original version was bound to roff by enforcing a call to deroff. This version is a reimplementation and must run in a pipe with \fBderoff\fP(1) if you want to process roff documents. Similarly, you can run it in a pipe with \fBdehtml\fP(1) or \fBdetex\fP(1) to process HTML or TeX documents. .\"}}} .SH "SEE ALSO" \"{{{ deroff(1), fmt(1), style(1) .PP Cherry, L.L.; Vesterman, W.: \fIWriting Tools\(emThe STYLE and DICTION programs\fP, Computer Science Technical Report 91, Bell Laboratories, Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's Supplementary Documents by O'Reilly. .PP Strunk, William: \fIThe elements of style\fP, Ithaca, N.Y.: Priv. print., 1918, http://coba.shsu.edu/help/strunk/ .PP There is a huge and actively maintained Standard American English database at: https://mrsatterly.com/diction.html .\"}}} diction-1.14/diction.c0000644000014400001440000003277113152624413014032 0ustar michaeluser/* Notes */ /*{{{C}}}*//*{{{*/ /* This program is GNU software, copyright 1997-2017 Michael Haardt . 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*}}}*/ /* #includes */ /*{{{*/ #include "config.h" #include #include #include #include #include #include #ifdef HAVE_GETTEXT #include #define _(String) gettext(String) #else #define _(String) String #endif #include #include #include #include #include #include "getopt.h" #include "misc.h" #include "sentence.h" /*}}}*/ /* types */ /*{{{*/ struct badPhrase { char *phrase; size_t phrase_len; regex_t phrase_r; char *suggest; int beginner; }; /*}}}*/ static int doubleWords=1; static char phraseLanguage[32]; static struct badPhrase *badPhrases=(struct badPhrase *)0; static int badPhraseCapacity=0; static int badPhraseSize=0; static struct badPhrase *badSuffixes=(struct badPhrase *)0; static int badSuffixCapacity=0; static int badSuffixSize=0; static int sentences,hits; static int beginner=0; static int quiet=0; static int suggest=0; static void resolve_suggestions(struct badPhrase *phrases, int size) /*{{{*/ { int fix; /* resolve =phrase explainations */ for (fix=0; fixphrase_len=strlen(ln); if ((bp->phrase=malloc(bp->phrase_len+1))==(char*)0) { fprintf(stderr,_("diction: out of memory.\n")); exit(2); } strcpy(bp->phrase,ln); #if 0 if ((err=regcomp(&bp->phrase_r,ln,REG_EXTENDED))!=0) { char errmsg[1024]; regerror(err,&bp->phrase_r,errmsg,sizeof(errmsg)); fprintf(stderr,_("diction: Compiling regular expression `%s' failed (%s).\n"),ln,errmsg); exit(2); } #endif if (tab) { if ((bp->suggest=malloc(strlen(tab)+1))==(char*)0) { fprintf(stderr,_("diction: out of memory.\n")); exit(2); } strcpy(bp->suggest,tab); } else bp->suggest=(char*)0; if (tab2) { bp->beginner=1; } else { bp->beginner=0; } } } resolve_suggestions(badPhrases, badPhraseSize); resolve_suggestions(badSuffixes, badSuffixSize); } /*}}}*/ static int cmplen(const void *a_arg, const void *b_arg) /*{{{*/ { const struct badPhrase *a=(const struct badPhrase*)a_arg; const struct badPhrase *b=(const struct badPhrase*)b_arg; return ((int)b->phrase_len)-((int)a->phrase_len); } /*}}}*/ static void sort_suggestions(struct badPhrase *phrases, int size) /*{{{*/ { qsort(phrases, size, sizeof(*phrases), cmplen); } /*}}}*/ static void diction(const char *sent, size_t length, const char *file, int line, int col, int endLine, int endCol) /*{{{*/ { const char *lastout=sent; const char *s=sent; const char *end=sent+length; const char *lastWord=(const char*)0; const struct badPhrase *badPhraseEnd, *bp; if (length==0) return; while (ssent && isalpha(*(s-1))); /* check for bad phrase */ /*{{{*/ if (inword) { bp=badSuffixes; badPhraseEnd=bp+badSuffixSize; } else { bp=badPhrases; badPhraseEnd=bp+badPhraseSize; } for (; bpphrase; if (inword) { /* suffix match */ if ((s-2)suggest || (bp->suggest && *bp->suggest!='!')) && bp->beginner<=beginner ) { ++hits; if (lastout==sent) { if (quiet) printf("%d.%d-%d.%d: ",line,col,endLine,endCol); else printf("%s:%d.%d-%d.%d: ",file,line,col,endLine,endCol); } while (lastoutsuggest) { putc(' ',stdout); putc('-',stdout); putc('>',stdout); putc(' ',stdout); fputs(bp->suggest,stdout); } putc(']',stdout); } s=str-1; break; } } /*}}}*/ /* check for double words */ /*{{{*/ if (doubleWords) { const char *badword,*str; if (s>sent && !isalpha(*(s-1))) { /* move back to end of last word */ badword=s-1; while (badword>sent && !isalpha(*badword)) --badword; if (badword>sent) { /* move back to begin of last word */ while (badword>sent && isalpha(*badword)) --badword; if (!isalpha(*badword)) ++badword; str=s; while (*badword==*str && badword',stdout); putc(' ',stdout); fputs(_("Double word."),stdout); } putc(']',stdout); lastWord=s; s=str-1; } } } } /*}}}*/ ++s; } ++sentences; if (lastout!=sent) { while (lastout.\n"),stdout); exit(0); } /*}}}*/ if (defaultPhrases[0]) loadPhrases(defaultPhrases); if (userPhrases) loadPhrases(userPhrases); sort_suggestions(badPhrases, badPhraseSize); sort_suggestions(badSuffixes, badSuffixSize); sentences=0; hits=0; if (optind==argc) sentence("diction",stdin,"(stdin)",diction,phraseLanguage); else while (optind, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-09-02 23:56+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: diction.c:111 diction.c:471 #, c-format msgid "diction: Opening `%s' failed (%s).\n" msgstr "" #: diction.c:129 diction.c:143 diction.c:165 diction.c:183 #, c-format msgid "diction: out of memory.\n" msgstr "" #: diction.c:175 #, c-format msgid "diction: Compiling regular expression `%s' failed (%s).\n" msgstr "" #: diction.c:325 msgid "Double word." msgstr "" #: diction.c:348 msgid "" "Usage: diction [-b] [-d] [-f file [-n|-L language]] [-q] [file ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file file [--no-default-file|--language]] [--quiet] " "[file ...]\n" " diction --version\n" msgstr "" #: diction.c:390 #, c-format msgid "diction: Invalid string `..' in default phrase language `%s'.\n" msgstr "" #: diction.c:434 msgid "Try `diction -h' or `diction --help' for more information.\n" msgstr "" #: diction.c:441 msgid "" "Print wordy and commonly misused phrases in sentences.\n" "\n" msgstr "" #: diction.c:442 msgid "" "-b, --beginner complain about typical mistakes of beginners\n" msgstr "" #: diction.c:443 msgid "-d, --ignore-double-words do not complain about double words\n" msgstr "" #: diction.c:444 msgid "-s, --suggest suggest better wording\n" msgstr "" #: diction.c:445 msgid "-f, --file also read the specified database\n" msgstr "" #: diction.c:446 msgid "-n, --no-default-file do not read the default phrase file\n" msgstr "" #: diction.c:447 msgid "-L, --language set document language\n" msgstr "" #: diction.c:448 msgid "-q, --quiet do not print input file name\n" msgstr "" #: diction.c:449 msgid "-h, --help print this message\n" msgstr "" #: diction.c:450 msgid " --version print the version\n" msgstr "" #: diction.c:452 style.c:1102 msgid "Report bugs to .\n" msgstr "" #: diction.c:482 style.c:1122 #, c-format msgid "No sentences found.\n" msgstr "" #: diction.c:486 #, c-format msgid "No phrases " msgstr "" #: diction.c:487 #, c-format msgid "1 phrase " msgstr "" #: diction.c:488 #, c-format msgid "%d phrases " msgstr "" #: diction.c:489 #, c-format msgid "in 1 sentence found.\n" msgstr "" #: diction.c:490 #, c-format msgid "in %d sentences found.\n" msgstr "" #: getopt.c:571 getopt.c:587 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: getopt.c:620 getopt.c:624 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "" #: getopt.c:633 getopt.c:638 #, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "" #: getopt.c:681 getopt.c:700 getopt.c:1016 getopt.c:1035 #, c-format msgid "%s: option `%s' requires an argument\n" msgstr "" #: getopt.c:738 getopt.c:741 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #: getopt.c:749 getopt.c:752 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #: getopt.c:804 getopt.c:807 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: getopt.c:813 getopt.c:816 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #: getopt.c:868 getopt.c:884 getopt.c:1088 getopt.c:1106 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "" #: getopt.c:937 getopt.c:953 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: getopt.c:977 getopt.c:995 #, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "" #: sentence.c:204 #, c-format msgid "%s: internal error, compiling a regular expression failed (%s).\n" msgstr "" #: sentence.c:241 #, c-format msgid "%s: increasing sentence buffer failed: %s\n" msgstr "" #: style.c:72 style.c:86 #, c-format msgid "style: out of memory\n" msgstr "" #: style.c:988 msgid "" "Usage: style [-L language] [-l length] [-r ari] [file ...]\n" " style [--language language] [--print-long length] [--print-ari ari]\n" " [file ...]\n" " style --version\n" msgstr "" #: style.c:1046 #, c-format msgid "style: Incorrect language option `%s'.\n" msgstr "" #: style.c:1082 msgid "Try style -h|--help for more information.\n" msgstr "" #: style.c:1089 msgid "" "Analyse surface characteristics of a document.\n" "\n" msgstr "" #: style.c:1090 msgid "" "-L, --language set the document language.\n" "-l, --print-long print all sentences longer than words\n" "-r, --print-ari print all sentences with an ARI greater than than " "\n" "-p, --print-passive print all sentences phrased in the passive voice\n" "-N, --print-nom print all sentences containing nominalizations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing nominalizations\n" msgstr "" #: style.c:1098 msgid "" "-h, --help print this message\n" " --version print the version\n" msgstr "" #: style.c:1112 #, c-format msgid "style: Opening `%s' failed (%s).\n" msgstr "" #: style.c:1131 #, c-format msgid "readability grades:\n" msgstr "" #: style.c:1136 msgid "/100 (plain English)" msgstr "" #: style.c:1136 msgid "/100" msgstr "" #: style.c:1141 style.c:1146 #, c-format msgid "below school year 5\n" msgstr "" #: style.c:1142 #, c-format msgid "higher than school year 10\n" msgstr "" #: style.c:1143 style.c:1148 #, c-format msgid "school year %d\n" msgstr "" #: style.c:1145 msgid "Lix" msgstr "" #: style.c:1147 #, c-format msgid "higher than school year 11\n" msgstr "" #: style.c:1149 msgid "SMOG-Grading" msgstr "" #: style.c:1151 #, c-format msgid "sentence info:\n" msgstr "" #: style.c:1152 #, c-format msgid " %d characters\n" msgstr "" #: style.c:1153 #, c-format msgid " %d words, average length %.2f characters = %.2f syllables\n" msgstr "" #: style.c:1154 #, c-format msgid " %d sentences, average length %.1f words\n" msgstr "" #: style.c:1158 #, c-format msgid " %d%% (%d) short sentences (at most %d words)\n" msgstr "" #: style.c:1161 #, c-format msgid " %d%% (%d) long sentences (at least %d words)\n" msgstr "" #: style.c:1162 #, c-format msgid " %d paragraphs, average length %.1f sentences\n" msgstr "" #: style.c:1163 #, c-format msgid " %d%% (%d) questions\n" msgstr "" #: style.c:1164 #, c-format msgid " %d%% (%d) passive sentences\n" msgstr "" #: style.c:1165 #, c-format msgid "" " longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n" msgstr "" #. #. Missing output: #. #. sentence types: #. simple 100% (1) complex 0% (0) #. compound 0% (0) compound-complex 0% (0) #. word usage: #. verb types as % of total verbs #. tobe 100% (1) aux 0% (0) inf 0% (0) #. passives as % of non-inf verbs 0% (0) #. types as % of total #. prep 0.0% (0) conj 0.0% (0) adv 0.0% (0) #. noun 25.0% (1) adj 25.0% (1) pron 25.0% (1) #. nominalizations 0 % (0) #. #: style.c:1182 #, c-format msgid "word usage:\n" msgstr "" #: style.c:1183 #, c-format msgid " verb types:\n" msgstr "" #: style.c:1184 #, c-format msgid " to be (%d) auxiliary (%d) \n" msgstr "" #: style.c:1185 #, c-format msgid " types as %% of total:\n" msgstr "" #: style.c:1186 #, c-format msgid "" " conjunctions %1.f%% (%d) pronouns %1.f%% (%d) prepositions %1.f%% (%" "d)\n" msgstr "" #: style.c:1191 #, c-format msgid " nominalizations %1.f%% (%d)\n" msgstr "" #: style.c:1194 #, c-format msgid "sentence beginnings:\n" msgstr "" #: style.c:1195 #, c-format msgid " pronoun (%d) interrogative pronoun (%d) article (%d)\n" msgstr "" #: style.c:1196 #, c-format msgid "" " subordinating conjunction (%d) conjunction (%d) preposition (%d)\n" msgstr "" diction-1.14/diction.spec0000644000014400001440000000204313152623154014530 0ustar michaeluser%define prefix /usr %define RELEASE 1 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Summary: analyze text for style Name: diction Version: 1.13 Release: %rel Copyright: GPL Group: Text/Utilities Source: http://www.moria.de/~michael/diction/diction-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-root URL: http://www.moria.de/~michael/diction/ DocDir: %{prefix}/doc %description diction [desc] %changelog * Thu May 12 2000 HWN - Initial spec file copied GGV %prep %setup %build # Needed for snapshot releases. if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS --prefix=%{prefix} else CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} fi if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc COPYING README %{prefix}/bin/* %{prefix}/share/* %{prefix}/man/* diction-1.14/diction.spec.in0000644000014400001440000000205013067443010015127 0ustar michaeluser%define prefix /usr %define RELEASE 1 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Summary: analyze text for style Name: diction Version: @VERSION@ Release: %rel Copyright: GPL Group: Text/Utilities Source: http://www.moria.de/~michael/diction/diction-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-root URL: http://www.moria.de/~michael/diction/ DocDir: %{prefix}/doc %description diction [desc] %changelog * Thu May 12 2000 HWN - Initial spec file copied GGV %prep %setup %build # Needed for snapshot releases. if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS --prefix=%{prefix} else CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} fi if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc COPYING README %{prefix}/bin/* %{prefix}/share/* %{prefix}/man/* diction-1.14/diction.texi.in0000644000014400001440000002143613067443010015157 0ustar michaeluser@c {{{Texinfo}}}@c {{{ Setup \input texinfo @setfilename diction.info @settitle diction, print wordy and commonly misused phrases in sentences @syncodeindex ky cp @syncodeindex pg cp @syncodeindex tp cp @defcodeindex op @syncodeindex op fn @syncodeindex vr fn @ifinfo @direntry * diction: (diction). print wordy and commonly misused phrases in sentences. @end direntry This file documents @command{diction}, a program to print wordy and commonly misused phrases in sentences. Published by the Free Software Foundation, 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA Copyright 1997-2007 Michael Haardt Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by Michael Haardt. @end ifinfo @setchapternewpage off @c }}} @c {{{ Title page @titlepage @title diction, print wordy and commonly misused phrases in sentences @subtitle version @VERSION@, @UPDATED@ @author Michael Haardt @page @vskip 0pt plus 1filll Copyright @copyright{} 1997-2007 Michael Haardt @sp 2 Published by the Free Software Foundation, @* 59 Temple Place - Suite 330, @* Boston, MA 02111-1307, USA Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by Michael Haardt. @end titlepage @c }}} @c {{{ Overview @page @ifnottex @node Top @top Diction @command{diction} prints wordy and commonly misused phrases in sentences. This document was produced for version @VERSION@ of @sc{gnu} @command{diction}. @end ifnottex @menu * Introduction:: Introduction. * Invoking:: Invoking @command{diction}; description of options. * Diagnostics:: Exit status returned by @command{diction}. * Reporting Bugs:: Reporting Bugs. * Concept Index:: A menu with all the topics in this manual. * Index:: A menu with all @command{diction} commands and command-line options. @end menu @c }}} @c {{{ Introduction @node Introduction @chapter Introduction @command{diction} finds all sentences in a document that contain phrases from a database of frequently misused, bad or wordy diction. It further checks for double words. If no files are given, the document is read from standard input. Each found phrase is enclosed in @code{[ ]} (brackets). Suggestions and advice, if any, are printed headed by a right arrow @code{->}. A sentence is a sequence of words, that starts with a capitalised word and ends with a full stop, double colon, question mark or exclaimation mark. A single letter followed by a dot is considered an abbreviation, so it does not terminate a sentence. Various multi-letter abbreviations are recognized, they do not terminate a sentence as well, neither do fractional numbers. @command{diction} understands @command{cpp} @code{#line} lines for being able to give precise locations when printing sentences. There has been a diction command on old UNIX systems, which is now part of the AT&T DWB package. The original version was bound to roff by enforcing a call to @command{deroff}. This version is a reimplementation and must run in a pipe with @command{deroff} if you want to process roff documents. Similarly, you can run it in a pipe with @command{dehtml} or @command{detex} to process HTML or TeX documents. See also: Cherry, L.L.; Vesterman, W.: Writing Tools-The STYLE and DICTION programs, Computer Science Technical Report 91, Bell Laboratories, Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's Supplementary Documents by O'Reilly. Strunk, William: The elements of style, Ithaca, N.Y.: Priv. print., 1918, @url{http://coba.shsu.edu/help/strunk/}. @c }}} @c {{{ Invoking @node Invoking @chapter Invoking @command{diction} @table @samp @item -b @itemx --beginner @opindex -b @opindex --beginner @cindex complain about typical mistakes of beginners Complain about mistakes typically made by beginners. @item -d @itemx --ignore-double-words @opindex -d @opindex --ignore-double-words @cindex do not complain about double words Ignore double words and do not complain about them. @item -s @itemx --suggest @opindex -s @opindex --suggest @cindex suggest better wording Suggest better wording, if any. @item -f @var{file} @itemx --file @var{file} @opindex -f @opindex --file @cindex user specified database Read the user specified database from the specified @var{file} in addition to the default database. @item -n @itemx --no-default-file @opindex -n @opindex --no-default-file @cindex not loading default database Do not read the default database, so only the user-specified database is used. @item -L @var{language} @itemx --language @var{language} @opindex -L @opindex --language @cindex set phrase file language Set the phrase file language. @item -h @itemx --help @opindex -h @opindex --help @cindex print usage message Print a short usage message. @itemx --version @opindex --version @cindex print version Print the version. @end table @section Environment Variables Diction's behaviour is affected by the following environment variables. @cindex environment variables @table @code @itemx LC_MESSAGES @vindex LC_MESSAGES @cindex language of messages @cindex message language @cindex national language support @cindex NLS @cindex translation of message language This variable specifies the @code{LC_MESSAGES} locale, which determines the language that @command{diction} uses for messages. American English is used if the environment variable is not set, or if the message catalog is not installed, or if @command{diction} was not compiled with national language support (@sc{nls}). The variable is further used as default for the phrase language. @end table @section Files @cindex files @table @code @itemx @DATADIR@/diction This directory contains phrase databases for various languages. @end table @c }}} @c {{{ Diagnostics @node Diagnostics @chapter Diagnostics If no errors occur, exit status is 0. On usage errors, 1 is returned. Termination caused by lack of memory is signalled by exit code 2. @c }}} @c {{{ Reporting Bugs @node Reporting Bugs @chapter Reporting Bugs If you find a bug in @command{diction}, please send electronic mail to @email{michael@@moria.de}. Include the version number, which you can find by running @command{diction --version}. Also include the hardware and operating system, the compiler used to compile `diction', a description of the bug behavior, and the input to `diction' that triggered the bug. @c }}} @c {{{ Author @c node Author @c chapter Author This program is GNU software, copyright 1997-2005 Michael Haardt @email{michael@@moria.de}. The english phrase file contains contributions by Greg Lindahl @email{lindahl@@pbm.com}, Wil Baden, Gary D. Kline, Kimberly Hanks and Beth Morris. 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @c }}} @c {{{ Concept Index @page @node Concept Index @unnumbered Concept Index This is a general index of all issues discussed in this manual, with the exception of the @command{diction} command-line options. @printindex cp @c }}} @c {{{ Index @page @node Index @unnumbered Index This is an alphabetical list of all @command{diction} command-line options and environment variables. @printindex fn @contents @c }}} @bye diction-1.14/en_GB.po0000644000014400001440000002674113152624415013551 0ustar michaelusermsgid "" msgstr "" "Project-Id-Version: diction 1.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-09-02 23:56+0200\n" "PO-Revision-Date: 2006-04-13 22:05+0100\n" "Last-Translator: James Rowe \n" "Language-Team: English \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: diction.c:111 diction.c:471 #, c-format msgid "diction: Opening `%s' failed (%s).\n" msgstr "diction: Opening `%s' failed (%s).\n" #: diction.c:129 diction.c:143 diction.c:165 diction.c:183 #, c-format msgid "diction: out of memory.\n" msgstr "diction: out of memory.\n" #: diction.c:175 #, c-format msgid "diction: Compiling regular expression `%s' failed (%s).\n" msgstr "diction: Compiling regular expression `%s' failed (%s).\n" #: diction.c:325 msgid "Double word." msgstr "Double word." #: diction.c:348 msgid "" "Usage: diction [-b] [-d] [-f file [-n|-L language]] [-q] [file ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file file [--no-default-file|--language]] [--quiet] " "[file ...]\n" " diction --version\n" msgstr "" "Usage: diction [-b] [-d] [-f file [-n|-L language]] [-q] [file ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file file [--no-default-file|--language]] [--quiet] " "[file ...]\n" " diction --version\n" #: diction.c:390 #, c-format msgid "diction: Invalid string `..' in default phrase language `%s'.\n" msgstr "diction: Invalid string `..' in default phrase language `%s'.\n" #: diction.c:434 msgid "Try `diction -h' or `diction --help' for more information.\n" msgstr "Try `diction -h' or `diction --help' for more information.\n" #: diction.c:441 msgid "" "Print wordy and commonly misused phrases in sentences.\n" "\n" msgstr "" "Print wordy and commonly misused phrases in sentences.\n" "\n" #: diction.c:442 msgid "" "-b, --beginner complain about typical mistakes of beginners\n" msgstr "" "-b, --beginner complain about typical mistakes of beginners\n" #: diction.c:443 msgid "-d, --ignore-double-words do not complain about double words\n" msgstr "-d, --ignore-double-words do not complain about double words\n" #: diction.c:444 msgid "-s, --suggest suggest better wording\n" msgstr "-s, --suggest suggest better wording\n" #: diction.c:445 msgid "-f, --file also read the specified database\n" msgstr "-f, --file also read the specified database\n" #: diction.c:446 msgid "-n, --no-default-file do not read the default phrase file\n" msgstr "-n, --no-default-file do not read the default phrase file\n" #: diction.c:447 msgid "-L, --language set document language\n" msgstr "-L, --language set document language\n" #: diction.c:448 msgid "-q, --quiet do not print input file name\n" msgstr "-q, --quiet do not print input file name\n" #: diction.c:449 msgid "-h, --help print this message\n" msgstr "-h, --help print this message\n" #: diction.c:450 msgid " --version print the version\n" msgstr " --version print the version\n" #: diction.c:452 style.c:1102 msgid "Report bugs to .\n" msgstr "Report bugs to .\n" #: diction.c:482 style.c:1122 #, c-format msgid "No sentences found.\n" msgstr "No sentences found.\n" #: diction.c:486 #, c-format msgid "No phrases " msgstr "No phrases " #: diction.c:487 #, c-format msgid "1 phrase " msgstr "1 phrase " #: diction.c:488 #, c-format msgid "%d phrases " msgstr "%d phrases " #: diction.c:489 #, c-format msgid "in 1 sentence found.\n" msgstr "in 1 sentence found.\n" #: diction.c:490 #, c-format msgid "in %d sentences found.\n" msgstr "in %d sentences found.\n" #: getopt.c:571 getopt.c:587 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "%s: option `%s' is ambiguous\n" #: getopt.c:620 getopt.c:624 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s: option `--%s' doesn't allow an argument\n" #: getopt.c:633 getopt.c:638 #, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "%s: option `%c%s' doesn't allow an argument\n" #: getopt.c:681 getopt.c:700 getopt.c:1016 getopt.c:1035 #, c-format msgid "%s: option `%s' requires an argument\n" msgstr "%s: option `%s' requires an argument\n" #: getopt.c:738 getopt.c:741 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s: unrecognised option `--%s'\n" #: getopt.c:749 getopt.c:752 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "%s: unrecognised option `%c%s'\n" #: getopt.c:804 getopt.c:807 #, c-format msgid "%s: illegal option -- %c\n" msgstr "%s: illegal option -- %c\n" #: getopt.c:813 getopt.c:816 #, c-format msgid "%s: invalid option -- %c\n" msgstr "%s: invalid option -- %c\n" #: getopt.c:868 getopt.c:884 getopt.c:1088 getopt.c:1106 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "%s: option requires an argument -- %c\n" #: getopt.c:937 getopt.c:953 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "%s: option `-W %s' is ambiguous\n" #: getopt.c:977 getopt.c:995 #, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "%s: option `-W %s' doesn't allow an argument\n" #: sentence.c:204 #, c-format msgid "%s: internal error, compiling a regular expression failed (%s).\n" msgstr "%s: internal error, compiling a regular expression failed (%s).\n" #: sentence.c:241 #, c-format msgid "%s: increasing sentence buffer failed: %s\n" msgstr "%s: increasing sentence buffer failed: %s\n" #: style.c:72 style.c:86 #, c-format msgid "style: out of memory\n" msgstr "style: out of memory\n" #: style.c:988 msgid "" "Usage: style [-L language] [-l length] [-r ari] [file ...]\n" " style [--language language] [--print-long length] [--print-ari ari]\n" " [file ...]\n" " style --version\n" msgstr "" "Usage: style [-L language] [-l length] [-r ari] [file ...]\n" " style [--language language] [--print-long length] [--print-ari ari]\n" " [file ...]\n" " style --version\n" #: style.c:1046 #, c-format msgid "style: Incorrect language option `%s'.\n" msgstr "style: Incorrect language option `%s'.\n" #: style.c:1082 msgid "Try style -h|--help for more information.\n" msgstr "Try style -h|--help for more information.\n" #: style.c:1089 msgid "" "Analyse surface characteristics of a document.\n" "\n" msgstr "" "Analyse surface characteristics of a document.\n" "\n" #: style.c:1090 msgid "" "-L, --language set the document language.\n" "-l, --print-long print all sentences longer than words\n" "-r, --print-ari print all sentences with an ARI greater than than " "\n" "-p, --print-passive print all sentences phrased in the passive voice\n" "-N, --print-nom print all sentences containing nominalizations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing nominalizations\n" msgstr "" "-L, --language set the document language.\n" "-l, --print-long print all sentences longer than words\n" "-r, --print-ari print all sentences with an ARI greater than than " "\n" "-p, --print-passive print all sentences phrased in the passive voice\n" "-N, --print-nom print all sentences containing normalisations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing normalisations\n" #: style.c:1098 msgid "" "-h, --help print this message\n" " --version print the version\n" msgstr "" "-h, --help print this message\n" " --version print the version\n" #: style.c:1112 #, c-format msgid "style: Opening `%s' failed (%s).\n" msgstr "style: Opening `%s' failed (%s).\n" #: style.c:1131 #, c-format msgid "readability grades:\n" msgstr "readability grades:\n" #: style.c:1136 msgid "/100 (plain English)" msgstr "/100 (plain English)" #: style.c:1136 msgid "/100" msgstr "/100" #: style.c:1141 style.c:1146 #, c-format msgid "below school year 5\n" msgstr "below school year 5\n" #: style.c:1142 #, c-format msgid "higher than school year 10\n" msgstr "higher than school year 10\n" #: style.c:1143 style.c:1148 #, c-format msgid "school year %d\n" msgstr "school year %d\n" #: style.c:1145 msgid "Lix" msgstr "Lix" #: style.c:1147 #, c-format msgid "higher than school year 11\n" msgstr "higher than school year 11\n" #: style.c:1149 msgid "SMOG-Grading" msgstr "SMOG-Grading" #: style.c:1151 #, c-format msgid "sentence info:\n" msgstr "sentence info:\n" #: style.c:1152 #, c-format msgid " %d characters\n" msgstr " %d characters\n" #: style.c:1153 #, c-format msgid " %d words, average length %.2f characters = %.2f syllables\n" msgstr " %d words, average length %.2f characters = %.2f syllables\n" #: style.c:1154 #, c-format msgid " %d sentences, average length %.1f words\n" msgstr " %d sentences, average length %.1f words\n" #: style.c:1158 #, c-format msgid " %d%% (%d) short sentences (at most %d words)\n" msgstr " %d%% (%d) short sentences (at most %d words)\n" #: style.c:1161 #, c-format msgid " %d%% (%d) long sentences (at least %d words)\n" msgstr " %d%% (%d) long sentences (at least %d words)\n" #: style.c:1162 #, c-format msgid " %d paragraphs, average length %.1f sentences\n" msgstr " %d paragraphs, average length %.1f sentences\n" #: style.c:1163 #, c-format msgid " %d%% (%d) questions\n" msgstr " %d%% (%d) questions\n" #: style.c:1164 #, c-format msgid " %d%% (%d) passive sentences\n" msgstr " %d%% (%d) passive sentences\n" #: style.c:1165 #, c-format msgid "" " longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n" msgstr "" " longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n" #. #. Missing output: #. #. sentence types: #. simple 100% (1) complex 0% (0) #. compound 0% (0) compound-complex 0% (0) #. word usage: #. verb types as % of total verbs #. tobe 100% (1) aux 0% (0) inf 0% (0) #. passives as % of non-inf verbs 0% (0) #. types as % of total #. prep 0.0% (0) conj 0.0% (0) adv 0.0% (0) #. noun 25.0% (1) adj 25.0% (1) pron 25.0% (1) #. nominalizations 0 % (0) #. #: style.c:1182 #, c-format msgid "word usage:\n" msgstr "word usage:\n" #: style.c:1183 #, c-format msgid " verb types:\n" msgstr " verb types:\n" #: style.c:1184 #, c-format msgid " to be (%d) auxiliary (%d) \n" msgstr " to be (%d) auxiliary (%d) \n" #: style.c:1185 #, c-format msgid " types as %% of total:\n" msgstr " types as %% of total:\n" #: style.c:1186 #, fuzzy, c-format msgid "" " conjunctions %1.f%% (%d) pronouns %1.f%% (%d) prepositions %1.f%% (%" "d)\n" msgstr "" " conjunctions %1.f% (%d) pronouns %1.f% (%d) prepositions %1.f% (%d)\n" #: style.c:1191 #, fuzzy, c-format msgid " nominalizations %1.f%% (%d)\n" msgstr " normalisations %1.f% (%d)\n" #: style.c:1194 #, c-format msgid "sentence beginnings:\n" msgstr "sentence beginnings:\n" #: style.c:1195 #, c-format msgid " pronoun (%d) interrogative pronoun (%d) article (%d)\n" msgstr " pronoun (%d) interrogative pronoun (%d) article (%d)\n" #: style.c:1196 #, c-format msgid "" " subordinating conjunction (%d) conjunction (%d) preposition (%d)\n" msgstr "" " subordinating conjunction (%d) conjunction (%d) preposition (%d)\n" diction-1.14/getopt.c0000644000014400001440000010054513067443010013673 0ustar michaeluser/* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* This tells Alpha OSF/1 not to define a getopt prototype in . Ditto for AIX 3.2 and . */ #ifndef _NO_PROTO # define _NO_PROTO #endif #ifdef HAVE_CONFIG_H # include #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 # include # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION # define ELIDE_CODE # endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ # include # include #endif /* GNU C library. */ #include #ifdef VMS # include #endif #ifdef USE_NLS # include # define _(msgid) gettext (msgid) #else # define _(msgid) (msgid) #endif #if defined _LIBC && defined USE_IN_LIBIO # include #endif #ifndef attribute_hidden # define attribute_hidden #endif /* This version of `getopt' appears to the caller like standard Unix `getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. As `getopt' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt.h" #include "getopt_int.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Keep a global copy of all internal members of getopt_data. */ static struct _getopt_data getopt_data; #ifndef __GNU_LIBRARY__ /* Avoid depending on library functions or files whose names are inconsistent. */ #ifndef getenv extern char *getenv (); #endif #endif /* not __GNU_LIBRARY__ */ #ifdef _LIBC /* Stored original parameters. XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ extern int __libc_argc; extern char **__libc_argv; /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ # ifdef USE_NONOPTION_FLAGS /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; # endif # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ if (d->__nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ static void exchange (char **argv, struct _getopt_data *d) { int bottom = d->__first_nonopt; int middle = d->__last_nonopt; int top = d->optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; else { memset (__mempcpy (new_str, __getopt_nonoption_flags, d->__nonoption_flags_max_len), '\0', top + 1 - d->__nonoption_flags_max_len); d->__nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ d->__first_nonopt += (d->optind - d->__last_nonopt); d->__last_nonopt = d->optind; } /* Initialize the internal data when the first call is made. */ static const char * _getopt_initialize (int argc, char *const *argv, const char *optstring, struct _getopt_data *d) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ d->__first_nonopt = d->__last_nonopt = d->optind; d->__nextchar = NULL; d->__posixly_correct = !!getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { d->__ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { d->__ordering = REQUIRE_ORDER; ++optstring; } else if (d->__posixly_correct) d->__ordering = REQUIRE_ORDER; else d->__ordering = PERMUTE; #if defined _LIBC && defined USE_NONOPTION_FLAGS if (!d->__posixly_correct && argc == __libc_argc && argv == __libc_argv) { if (d->__nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') d->__nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = d->__nonoption_flags_max_len = strlen (orig_str); if (d->__nonoption_flags_max_len < argc) d->__nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (d->__nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) d->__nonoption_flags_max_len = -1; else memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), '\0', d->__nonoption_flags_max_len - len); } } d->__nonoption_flags_len = d->__nonoption_flags_max_len; } else d->__nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal_r (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d) { int print_errors = d->opterr; if (optstring[0] == ':') print_errors = 0; if (argc < 1) return -1; d->optarg = NULL; if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) d->optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring, d); d->__initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ || (d->optind < d->__nonoption_flags_len \ && __getopt_nonoption_flags[d->optind] == '1')) #else # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') #endif if (d->__nextchar == NULL || *d->__nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (d->__last_nonopt > d->optind) d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange ((char **) argv, d); else if (d->__last_nonopt != d->optind) d->__first_nonopt = d->optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (d->optind < argc && NONOPTION_P) d->optind++; d->__last_nonopt = d->optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (d->optind != argc && !strcmp (argv[d->optind], "--")) { d->optind++; if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange ((char **) argv, d); else if (d->__first_nonopt == d->__last_nonopt) d->__first_nonopt = d->optind; d->__last_nonopt = argc; d->optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (d->optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (d->__first_nonopt != d->__last_nonopt) d->optind = d->__first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (d->__ordering == REQUIRE_ORDER) return -1; d->optarg = argv[d->optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ d->__nextchar = (argv[d->optind] + 1 + (longopts != NULL && argv[d->optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[d->optind][1] == '-' || (long_only && (argv[d->optind][2] || !strchr (optstring, argv[d->optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"), argv[0], argv[d->optind]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[d->optind]); #endif } d->__nextchar += strlen (d->__nextchar); d->optind++; d->optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; d->optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (argv[d->optind - 1][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #else fprintf (stderr, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[d->optind - 1][0], pfound->name); #else fprintf (stderr, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[d->optind - 1][0], pfound->name); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->__nextchar += strlen (d->__nextchar); d->optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]); #endif } d->__nextchar += strlen (d->__nextchar); d->optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } d->__nextchar += strlen (d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[d->optind][1] == '-' || strchr (optstring, *d->__nextchar) == NULL) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (argv[d->optind][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"), argv[0], d->__nextchar); #else fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], d->__nextchar); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[d->optind][0], d->__nextchar); #else fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[d->optind][0], d->__nextchar); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->__nextchar = (char *) ""; d->optind++; d->optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *d->__nextchar++; char *temp = strchr (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; if (temp == NULL || c == ':') { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (d->__posixly_correct) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: illegal option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); #endif } else { #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: invalid option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ d->optind++; } else if (d->optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option requires an argument -- %c\n"), argv[0], c) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `d->optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[d->optind]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[d->optind]); #endif } d->__nextchar += strlen (d->__nextchar); d->optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } d->__nextchar += strlen (d->__nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]); #endif } d->__nextchar += strlen (d->__nextchar); return optstring[0] == ':' ? ':' : '?'; } } d->__nextchar += strlen (d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } d->__nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else d->optarg = NULL; d->__nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ d->optind++; } else if (d->optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option requires an argument -- %c\n"), argv[0], c) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; d->__nextchar = NULL; } } return c; } } int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) { int result; getopt_data.optind = optind; getopt_data.opterr = opterr; result = _getopt_internal_r (argc, argv, optstring, longopts, longind, long_only, &getopt_data); optind = getopt_data.optind; optarg = getopt_data.optarg; optopt = getopt_data.optopt; return result; } #endif /* Not ELIDE_CODE. */ #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ diction-1.14/getopt.h0000644000014400001440000001314113067443010013673 0ustar michaeluser/* Declarations for getopt. Copyright (C) 1989-1994,1996-1999,2001,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GETOPT_H #ifndef __need_getopt # define _GETOPT_H 1 #endif /* If __GNU_LIBRARY__ is not already defined, either we are being used standalone, or this is the first header included in the source file. If we are being used with glibc, we need to include , but that does not exist if we are standalone. So: if __GNU_LIBRARY__ is not defined, include , which will pull in for us if it's from glibc. (Why ctype.h? It's guaranteed to exist and it doesn't flood the namespace with stuff the way some other headers do.) */ #if !defined __GNU_LIBRARY__ # include #endif #ifndef __THROW # ifndef __GNUC_PREREQ # define __GNUC_PREREQ(maj, min) (0) # endif # if defined __cplusplus && __GNUC_PREREQ (2,8) # define __THROW throw () # else # define __THROW # endif #endif #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { const char *name; /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, `optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in `optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU `getopt'. The argument `--' causes premature termination of argument scanning, explicitly telling `getopt' that there are no more options. If OPTS begins with `--', then non-option arguments are treated as arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ #ifndef __need_getopt extern int getopt_long (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW; extern int getopt_long_only (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW; #endif #ifdef __cplusplus } #endif /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ diction-1.14/getopt1.c0000644000014400001440000001125013067443010013746 0ustar michaeluser/* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifdef HAVE_CONFIG_H #include #endif #ifdef _LIBC # include #else # include "getopt.h" #endif #include "getopt_int.h" #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 #include #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif #ifndef NULL #define NULL 0 #endif int getopt_long (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } int _getopt_long_r (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 0, d); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } int _getopt_long_only_r (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 1, d); } #endif /* Not ELIDE_CODE. */ #ifdef TEST #include int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ diction-1.14/getopt_int.h0000644000014400001440000001123613067443010014550 0ustar michaeluser/* Internal declarations for getopt. Copyright (C) 1989-1994,1996-1999,2001,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GETOPT_INT_H #define _GETOPT_INT_H 1 extern int _getopt_internal (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only); /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ /* Data type for reentrant functions. */ struct _getopt_data { /* These have exactly the same meaning as the corresponding global variables, except that they are used for the reentrant versions of getopt. */ int optind; int opterr; int optopt; char *optarg; /* Internal members. */ /* True if the internal members have been initialized. */ int __initialized; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ char *__nextchar; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } __ordering; /* If the POSIXLY_CORRECT environment variable is set. */ int __posixly_correct; /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ int __first_nonopt; int __last_nonopt; #if defined _LIBC && defined USE_NONOPTION_FLAGS int __nonoption_flags_max_len; int __nonoption_flags_len; # endif }; /* The initializer is necessary to set OPTIND and OPTERR to their default values and to clear the initialization flag. */ #define _GETOPT_DATA_INITIALIZER { 1, 1 } extern int _getopt_internal_r (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, struct _getopt_data *__data); extern int _getopt_long_r (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); extern int _getopt_long_only_r (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); #endif /* getopt_int.h */ diction-1.14/misc.c0000644000014400001440000000235013067443010013317 0ustar michaeluser/* Notes */ /*{{{C}}}*//*{{{*/ /* This file is free software; as a special exception the author 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. */ /*}}}*/ /* #includes *//*{{{*/ #ifndef NO_POSIX_SOURCE #undef _POSIX_SOURCE #define _POSIX_SOURCE 1 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 2 #endif #ifdef DMALLOC #include "dmalloc.h" #endif #include #include #include #include #include #include #include #include "config.h" #include "misc.h" /*}}}*/ #ifdef BROKEN_REALLOC /* myrealloc -- ANSI conforming realloc() */ /*{{{*/ #undef realloc void *myrealloc(void *p, size_t n) { return (p==(void*)0 ? malloc(n) : realloc(p,n)); } /*}}}*/ #endif #ifndef HAVE_STRERROR /* strerror -- ANSI strerror */ /*{{{*/ extern int sys_nerr; extern char *sys_errlist[]; char *strerror(int err) { assert(err>=0); assert(err\n" "Language-Team: Nederlands \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: -en, -s\n" "X-Poedit-Language: Dutch\n" "X-Poedit-Country: NETHERLANDS\n" "X-Poedit-SourceCharset: utf-8\n" #: diction.c:111 diction.c:471 #, c-format msgid "diction: Opening `%s' failed (%s).\n" msgstr "diction: Openen van bestand `%s' niet mogelijk (%s).\n" #: diction.c:129 diction.c:143 diction.c:165 diction.c:183 #, c-format msgid "diction: out of memory.\n" msgstr "diction: geheugen uitgeput.\n" #: diction.c:175 #, c-format msgid "diction: Compiling regular expression `%s' failed (%s).\n" msgstr "diction: Vertalen reguliere expressie `%s' niet mogelijk (%s).\n" #: diction.c:325 msgid "Double word." msgstr "Dubbel woord." #: diction.c:348 msgid "" "Usage: diction [-b] [-d] [-f file [-n|-L language]] [-q] [file ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file file [--no-default-file|--language]] [--quiet] " "[file ...]\n" " diction --version\n" msgstr "" "Gebruik: diction [-b] [-d] [-f bestand [-n|-L taal]] [-q] [bestand ...]\n" " diction [--beginner] [--ignore-double-words]\n" " [--file bestand [--no-default-file|--language]] [--quiet]\n" " [bestand ...]\n" " diction --version\n" #: diction.c:390 #, c-format msgid "diction: Invalid string `..' in default phrase language `%s'.\n" msgstr "" "diction: Ongeldige karakters `..' in standaard uitdrukkingstaal `%s'.\n" #: diction.c:434 msgid "Try `diction -h' or `diction --help' for more information.\n" msgstr "Probeer `diction -h' of `diction --help' voor meer informatie.\n" #: diction.c:441 msgid "" "Print wordy and commonly misused phrases in sentences.\n" "\n" msgstr "Geeft wijdlopige en veel foutief gebruikte uitdrukkingen in zinnen.\n" #: diction.c:442 msgid "" "-b, --beginner complain about typical mistakes of beginners\n" msgstr "-b, --beginner Geef beginnersfouten aan\n" #: diction.c:443 msgid "-d, --ignore-double-words do not complain about double words\n" msgstr "-d, --ignore-double-words Geef dubbel gebruikte woorden niet aan\n" #: diction.c:444 msgid "-s, --suggest suggest better wording\n" msgstr "" "-s, --suggest Doe suggesties voor een betere formulering.\n" #: diction.c:445 msgid "-f, --file also read the specified database\n" msgstr "-f, --file Maak van deze database eveneens gebruik \n" #: diction.c:446 msgid "-n, --no-default-file do not read the default phrase file\n" msgstr "" "-n, --no-default-file Maak geen gebruik van de standaard uitdrukkingen " "database\n" #: diction.c:447 msgid "-L, --language set document language\n" msgstr "-L, --language Stel de documenttaal in\n" #: diction.c:448 msgid "-q, --quiet do not print input file name\n" msgstr "-q, --quiet Geef de inputfilenaam niet weer\n" #: diction.c:449 msgid "-h, --help print this message\n" msgstr "-h, --help Geef deze help-boodschap weer\n" #: diction.c:450 msgid " --version print the version\n" msgstr " --version Geef de versie weer\n" #: diction.c:452 style.c:1102 msgid "Report bugs to .\n" msgstr "Rapporteer fouten aan .\n" #: diction.c:482 style.c:1122 #, c-format msgid "No sentences found.\n" msgstr "Geen zinnen gevonden.\n" #: diction.c:486 #, c-format msgid "No phrases " msgstr "Geen uitdrukkingen gevonden " #: diction.c:487 #, c-format msgid "1 phrase " msgstr "Een uitdrukking " #: diction.c:488 #, c-format msgid "%d phrases " msgstr "%d uitdrukkingen " #: diction.c:489 #, c-format msgid "in 1 sentence found.\n" msgstr "in een zin gevonden.\n" #: diction.c:490 #, c-format msgid "in %d sentences found.\n" msgstr "in %d zinnen gevonden.\n" #: getopt.c:571 getopt.c:587 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "%s: Optie `%s' is ambigu.\n" #: getopt.c:620 getopt.c:624 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s: Optie `--%s' kent geen argument.\n" #: getopt.c:633 getopt.c:638 #, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "%s: Optie `%c%s' kent geen argument.\n" #: getopt.c:681 getopt.c:700 getopt.c:1016 getopt.c:1035 #, c-format msgid "%s: option `%s' requires an argument\n" msgstr "%s: Optie `%s' heeft een argument nodig.\n" #: getopt.c:738 getopt.c:741 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s: Onbekende optie `--%s'\n" #: getopt.c:749 getopt.c:752 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "%s: Onbekende optie `%c%s'\n" #: getopt.c:804 getopt.c:807 #, c-format msgid "%s: illegal option -- %c\n" msgstr "%s: Ongeldige optie -- %c\n" #: getopt.c:813 getopt.c:816 #, c-format msgid "%s: invalid option -- %c\n" msgstr "%s: Ongeldige optie -- %c\n" #: getopt.c:868 getopt.c:884 getopt.c:1088 getopt.c:1106 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "%s: Optie heeft een argument nodig -- %c\n" #: getopt.c:937 getopt.c:953 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "%s: Optie `-W %s' is ambigu\n" #: getopt.c:977 getopt.c:995 #, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "%s: Optie `-W %s' kent geen argument\n" #: sentence.c:204 #, c-format msgid "%s: internal error, compiling a regular expression failed (%s).\n" msgstr "" "%s: Interne fout, vertalen van reguliere expressie niet mogelijk (%s).\n" #: sentence.c:241 #, c-format msgid "%s: increasing sentence buffer failed: %s\n" msgstr "%s: Vergroten van de zin-buffer mislukt: %s\n" #: style.c:72 style.c:86 #, c-format msgid "style: out of memory\n" msgstr "style: geheugen uitgeput\n" #: style.c:988 msgid "" "Usage: style [-L language] [-l length] [-r ari] [file ...]\n" " style [--language language] [--print-long length] [--print-ari ari]\n" " [file ...]\n" " style --version\n" msgstr "" "Gebruik: style [-L taal] [-l lengte] [-r ari] [bestand ...]\n" " style [--language taal] [--print-long lengte] [--print-ari ari]\n" " [bestand ...]\n" " style --version\n" #: style.c:1046 #, c-format msgid "style: Incorrect language option `%s'.\n" msgstr "style: Onbekende taal optie `%s'\n" #: style.c:1082 msgid "Try style -h|--help for more information.\n" msgstr "style --help Geeft meer informatie.\n" #: style.c:1089 msgid "" "Analyse surface characteristics of a document.\n" "\n" msgstr "Analyseert oppervlakkige documentkenmerken.\n" #: style.c:1090 msgid "" "-L, --language set the document language.\n" "-l, --print-long print all sentences longer than words\n" "-r, --print-ari print all sentences with an ARI greater than than " "\n" "-p, --print-passive print all sentences phrased in the passive voice\n" "-N, --print-nom print all sentences containing nominalizations\n" "-n, --print-nom-passive print all sentences phrased in the passive voice or\n" " containing nominalizations\n" msgstr "" "-L, --language Stelt de documenttaal in\n" "-l, --print-long Drukt alle zinnen af langer dan woorden\n" "-r, --print-ari Drukt alle zinnen af met een ARI groter dan \n" "-p, --print-passive Drukt alle zinnen in lijdende vorm af\n" "-N, --print-nom Drukt alle zinnen af die verzelfstandigde " "werkwoorden bevatten\n" "-n, --print-nom-passive Drukt alle zinnen af die in lijdende vorm zijn \n" " of die verzelfstandigde werkwoorden bevatten\n" "-h, --help Deze help-boodschap weergeven\n" " --version Drukt de versie af\n" #: style.c:1098 msgid "" "-h, --help print this message\n" " --version print the version\n" msgstr "" "-h, --help Geef deze help-boodschap weer\n" " --version Geef de versie weer\n" #: style.c:1112 #, c-format msgid "style: Opening `%s' failed (%s).\n" msgstr "style: Openen van bestand `%s' niet mogelijk (%s).\n" #: style.c:1131 #, c-format msgid "readability grades:\n" msgstr "Leesbaarheidsgraden:\n" #: style.c:1136 msgid "/100 (plain English)" msgstr "/100 (normaal Engels)" #: style.c:1136 msgid "/100" msgstr "/100" #: style.c:1141 style.c:1146 #, c-format msgid "below school year 5\n" msgstr "lager dan het vijfde schooljaar\n" #: style.c:1142 #, c-format msgid "higher than school year 10\n" msgstr "hoger dan het tiende schooljaar\n" #: style.c:1143 style.c:1148 #, c-format msgid "school year %d\n" msgstr "Schooljaar %d\n" #: style.c:1145 msgid "Lix" msgstr "Lix" #: style.c:1147 #, c-format msgid "higher than school year 11\n" msgstr "hoger dan het elfde schooljaar\n" #: style.c:1149 msgid "SMOG-Grading" msgstr "SMOG-Gradatie" #: style.c:1151 #, c-format msgid "sentence info:\n" msgstr "Zinsinformatie:\n" #: style.c:1152 #, c-format msgid " %d characters\n" msgstr " %d karakters\n" #: style.c:1153 #, c-format msgid " %d words, average length %.2f characters = %.2f syllables\n" msgstr "" " %d woorden, gemiddelde zinslengte %.2f karakters, oftewel %.2f " "lettergrepen\n" #: style.c:1154 #, c-format msgid " %d sentences, average length %.1f words\n" msgstr " %d zinnen, gemiddelde lengte %.1f woorden\n" #: style.c:1158 #, c-format msgid " %d%% (%d) short sentences (at most %d words)\n" msgstr " %d%% (%d) korte zinnen (hoogstens %d woorden)\n" #: style.c:1161 #, c-format msgid " %d%% (%d) long sentences (at least %d words)\n" msgstr " %d%% (%d) lange zinnen (minstens %d woorden)\n" #: style.c:1162 #, c-format msgid " %d paragraphs, average length %.1f sentences\n" msgstr " %d alinea's, gemiddelde lengte %.1f zinnen\n" #: style.c:1163 #, c-format msgid " %d%% (%d) questions\n" msgstr " %d%% (%d) vragen\n" #: style.c:1164 #, c-format msgid " %d%% (%d) passive sentences\n" msgstr " %d%% (%d) zinnen in passieve vorm\n" #: style.c:1165 #, c-format msgid "" " longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n" msgstr "" " Langste zin bestaat uit %d woorden en is zin nr. %d\n" " Kortste zin bestaat uit %d woorden en is zin nr. %d\n" #. #. Missing output: #. #. sentence types: #. simple 100% (1) complex 0% (0) #. compound 0% (0) compound-complex 0% (0) #. word usage: #. verb types as % of total verbs #. tobe 100% (1) aux 0% (0) inf 0% (0) #. passives as % of non-inf verbs 0% (0) #. types as % of total #. prep 0.0% (0) conj 0.0% (0) adv 0.0% (0) #. noun 25.0% (1) adj 25.0% (1) pron 25.0% (1) #. nominalizations 0 % (0) #. #: style.c:1182 #, c-format msgid "word usage:\n" msgstr "Woordgebruik:\n" #: style.c:1183 #, c-format msgid " verb types:\n" msgstr " Werkwoord soorten:\n" #: style.c:1184 #, c-format msgid " to be (%d) auxiliary (%d) \n" msgstr " \"zijn\" (%d) hulpwerkwoord (%d) \n" #: style.c:1185 #, c-format msgid " types as %% of total:\n" msgstr " Woordsoorten als aantal en %% van het geheel:\n" #: style.c:1186 #, fuzzy, c-format msgid "" " conjunctions %1.f%% (%d) pronouns %1.f%% (%d) prepositions %1.f%% (%" "d)\n" msgstr "" " Voegwoord %d%% (%d) Voornaamwoord %d%% (%d) Voorzetsel %d%% (%d)\n" #: style.c:1191 #, fuzzy, c-format msgid " nominalizations %1.f%% (%d)\n" msgstr " Verzelfstandigd werkwoord %d%% (%d)\n" #: style.c:1194 #, c-format msgid "sentence beginnings:\n" msgstr "Zinnen beginnend met:\n" #: style.c:1195 #, c-format msgid " pronoun (%d) interrogative pronoun (%d) article (%d)\n" msgstr " Voornaamwoord (%d) Vragend voornaamwoord (%d) Lidwoord (%d)\n" #: style.c:1196 #, c-format msgid "" " subordinating conjunction (%d) conjunction (%d) preposition (%d)\n" msgstr " Onderschikkend voegwoord (%d) Voegwoord (%d) Voorzetsel (%d)\n" diction-1.14/sentence.c0000644000014400001440000001702413067443010014174 0ustar michaeluser/* Notes */ /*{{{C}}}*//*{{{*/ /* This program is GNU software, copyright 1997-2007 Michael Haardt . 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*}}}*/ /* #includes */ /*{{{*/ #undef _POSIX_SOURCE #define _POSIX_SOURCE 1 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 2 #include "config.h" #include #include #include #include #include #include #ifdef HAVE_GETTEXT #include #define _(String) gettext(String) #else #define _(String) String #endif #include #include #include #include #include "misc.h" #include "sentence.h" /*}}}*/ static const char *abbreviations_de[]= /*{{{*/ { "Dr", "bzw", "etc", "sog", "usw", (const char*)0 }; /*}}}*/ static const char *abbreviations_en[]= /*{{{*/ { "ch", "Ch", "ckts", "dB", "Dept", "dept", "Depts", "depts", "Dr", "Drs", "Eq", "eq", "etc", "et al", "Fig", "fig", "Figs", "figs", "ft", "0 in", "1 in", "2 in", "3 in", "4 in", "5 in", "6 in", "7 in", "8 in", "9 in", "Inc", "Jr", "jr", "mi", "Mr", "Mrs", "Ms", "No", "no", "Nos", "nos", "Ph", "Ref", "ref", "Refs", "refs", "St", "vs", "yr", (const char*)0 }; /*}}}*/ static const char *abbreviations_nl[]= /*{{{*/ { "as", "aub", "bijv", "bv", "ca", "dd", "dr", "drs", "ed", "jl", "maw", "muv", "oa", "tav", "tzt", "zg", "zgn", "zoz", "zsm", (const char*)0 }; /*}}}*/ static const char *abbreviations_none[]= /*{{{*/ { (const char*)0 }; /*}}}*/ static const char **abbreviations; static int endingInAbbrev(const char *s, size_t length, const char *lang) /*{{{*/ { const char **abbrev=abbreviations; size_t aLength; if (!isalpha(s[length-1])) return 0; if (endingInPossesiveS(s,length)) return 0; while (*abbrev!=(const char*)0) { if ((aLength=strlen(*abbrev))=3 && strncmp(s+length-2,"\'s",2)==0); } /*}}}*/ void sentence(const char *cmd, FILE *in, const char *file, void (*process)(const char *, size_t, const char *, int, int, int, int), const char *lang) /*{{{*/ { /* variables */ /*{{{*/ int voc,oc,c; char *sent=malloc(128); size_t length=0,capacity=128; int inSentence=0; int inWhiteSpace=0; int inParagraph=0; int ellipsis=0; int line=1,beginLine=1; int col=0,beginCol=0; int err; regex_t hashLine; char filebuf[_POSIX_PATH_MAX+1]; /*}}}*/ if (strncmp(lang,"en",2)==0) abbreviations=abbreviations_en; else if (strncmp(lang,"C",1)==0) abbreviations=abbreviations_en; else if (strncmp(lang,"de",2)==0) abbreviations=abbreviations_de; else if (strncmp(lang,"nl",2)==0) abbreviations=abbreviations_nl; /* JDL */ else abbreviations=abbreviations_none; /* compile #line number "file" regular expression */ /*{{{*/ if ((err=regcomp(&hashLine,"^[ \t]*line[ \t]*\\([0-9][0-9]*\\)[ \t]*\"\\([^\"]*\\)\"",0))) { char buf[256]; size_t len=regerror(err,&hashLine,buf,sizeof(buf)-1); buf[len]='\0'; fprintf(stderr,_("%s: internal error, compiling a regular expression failed (%s).\n"),cmd,buf); exit(2); } /*}}}*/ voc='\n'; c=getc(in); while ((oc=c)!=EOF) { c=getc(in); if (oc=='\n') {++line; col=0;} else ++col; if (voc=='\n' && oc=='#') /* process cpp style #line, continue */ /*{{{*/ { char buf[_POSIX_PATH_MAX+20]; regmatch_t found[3]; buf[0]=c; buf[1]='\0'; (void)fgets(buf+1,sizeof(buf)-1,in); if (regexec(&hashLine,buf,3,found,0)==0) /* #line */ /*{{{*/ { size_t len; line=strtol(buf+found[1].rm_so,(char**)0,10)-1; len=found[2].rm_eo-found[2].rm_so; if (len>_POSIX_PATH_MAX) len=_POSIX_PATH_MAX; strncpy(filebuf,buf+found[2].rm_so,len); filebuf[len]='\0'; file=filebuf; } /*}}}*/ c='\n'; continue; } /*}}}*/ if (length) { if (length>=(capacity-1) && (sent=realloc(sent,capacity*=2))==(char*)0) { fprintf(stderr,_("%s: increasing sentence buffer failed: %s\n"),cmd,strerror(errno)); exit(2); } if (isspace(oc)) { if (!inWhiteSpace) { sent[length++]=' '; inWhiteSpace=1; } } else { sent[length++]=oc; if (isalpha(oc)) inSentence=1; if ( (length==3 && strncmp(sent+length-3,"...",3)==0 && (c==EOF || isspace(c))) || (length>=4 && strncmp(sent+length-4," ...",4)==0 && (c==EOF || isspace(c))) ) { /* omission ellipsis */ inWhiteSpace=0; } else if (length>=4 && !isalpha(sent[length-4]) && !isspace(sent[length-4]) && strncmp(sent+length-3,"...",3)==0 && (c==EOF || isspace(c))) { /* beginning ellipsis */ char foo; foo=sent[length-3]; sent[length-3]='\0'; if (inSentence) process(sent,length-3,file,beginLine,beginCol,line,col); sent[length-3]=foo; memmove(sent,sent+length-3,3); length=3; inParagraph=0; inWhiteSpace=0; beginLine=line; beginCol=col; inSentence=0; } else if (length>=4 && strncmp(sent+length-4,"...",3)==0 && (c==EOF || isspace(c))) { /* ending ellipsis */ if (inWhiteSpace) --length; sent[length]='\0'; if (inSentence) process(sent,length,file,beginLine,beginCol,line,col); length=0; inWhiteSpace=0; inSentence=0; } else if ((oc=='.' || oc==':' || oc=='!' || oc=='?') && (c==EOF || isspace(c) || c=='"') && (!isdigit(voc) || oc!='.' || !isdigit(c)) && (oc!='.' || !endingInAbbrev(sent,length,lang))) { /* end of sentence */ if (inWhiteSpace) --length; sent[length]='\0'; if (inSentence) process(sent,length,file,beginLine,beginCol,line,col); length=0; inWhiteSpace=0; inSentence=0; } else { /* just a regular character */ inWhiteSpace=0; } } } else if (isupper(oc)) { inParagraph=0; sent[length++]=oc; inWhiteSpace=0; beginLine=line; beginCol=col; inSentence=1; } else if (!inParagraph && oc=='\n' && c=='\n') { process("",0,file,beginLine,beginCol,line,col); inParagraph=1; } voc=oc; } if (!inParagraph) process("",0,file,beginLine,beginCol,line,col); regfree(&hashLine); } /*}}}*/ diction-1.14/sentence.h0000644000014400001440000000212313067443010014173 0ustar michaeluser/* Notes */ /*{{{C}}}*//*{{{*/ /* This program is GNU software, copyright 1997-2007 Michael Haardt . 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*}}}*/ #ifndef SENTENCE_H #define SENTENCE_H #include #include int endingInPossesiveS(const char *s, size_t length); void sentence(const char *cmd, FILE *in, const char *file, void (*process)(const char *, size_t, const char *, int, int, int, int), const char *lang); #endif diction-1.14/style.1.in0000644000014400001440000002725513067443010014062 0ustar michaeluser' et .TH STYLE 1 "@UPDATED@" "GNU" "User commands" .SH NAME \"{{{roff}}}\"{{{ style \- analyse surface characteristics of a document .\"}}} .SH SYNOPSIS \"{{{ .\" Missing options: .\" -a displays all sentences with their length and readability index. .\" -e displays all sentences that begin with an expletive. .\" -P displays parts of speech of the words in the document. .\" -p displays all sentences that contain a passive verb. .ad l .B style .RB [ \-L .IR language ] .RB [ \-l .IR length ] .RB [ \-r .IR ari ] .RI [ file ...] .ad b .br .ad l .B style .RB [ \-\-language .IR language ] .RB [ \-\-print-long .IR length ] .RB [ \-\-print-ari .IR ari ] .RI [ file ...] .ad b .br .ad l .B style .BR \-h | \-\-help .ad b .br .ad l .B style \-\-version .ad b .\"}}} .SH DESCRIPTION \"{{{ \fBStyle\fP analyses the surface characteristics of the writing style of a document. It prints various readability grades, length of words, sentences and paragraphs. .\" sentence structure, word usage, verb type, sentence openers It can further locate sentences with certain characteristics. If no files are given, the document is read from standard input. .PP Numbers are counted as words with one syllable. A sentence is a sequence of words, that starts with a capitalised word and ends with a full stop, double colon, question mark or exclamation mark. A single letter followed by a dot is considered an abbreviation, so it does not end a sentence. Various multi-letter abbreviations are recognized, they do not end a sentence as well. A paragraph consists of two or more new line characters. .SS "Readability grades" \fBStyle\fP understands \fIcpp\fP(1) \fB#line\fP lines for being able to give precise locations when printing sentences. .IP "Kincaid formula" \"{{{ The Kincaid Formula was developed for Navy training manuals, that ranged in difficulty from 5.5 to 16.3. It is probably best applied to technical documents, because it is based on adult training manuals rather than school book text. Dialogs (often found in fictional texts) are usually a series of short sentences, which lowers the score. On the other hand, scientific texts with many long scientific terms are rated higher, although they are not necessarily harder to read for people who are familiar with those terms. .sp .\"{{{ Kincaid Index .if t \{\ .RS .EQ italic "Kincaid" = 11.8 * syllables over words + 0.39 * words over sentences - 15.59 .EN .RE .\} .if n \{\ .ad l Kincaid = 11.8*syllables/wds+0.39*wds/sentences-15.59 .ad b .\} .\"}}} .\"}}} .IP "Automated Readability Index" \"{{{ The Automated Readability Index is typically higher than Kincaid and Coleman-Liau, but lower than Flesch. .sp .\"{{{ Automated Readability Index .if t \{\ .RS .EQ italic "ARI" = 4.71 * letters over words + 0.5 * words over sentences - 21.43 .EN .RE .\} .if n \{\ .ad l ARI = 4.71*chars/wds+0.5*wds/sentences-21.43 .ad b .\} .\"}}} .\"}}} .IP "Coleman-Liau Formula" \"{{{ The Coleman-Liau Formula usually gives a lower grade than Kincaid, ARI and Flesch when applied to technical documents. .sp .\"{{{ Coleman-Liau Formula .if t \{\ .RS .EQ italic "Coleman-Liau" = 5.88 * letters over words - { 29.5 * sentences } over words - 15.8 .EN .RE .\} .if n \{\ .ad l Coleman-Liau = 5.88*chars/wds-29.5*sent/wds-15.8 .ad b .\} .\"}}} .\"}}} .IP "Flesh reading easy formula" \"{{{ The Flesh reading easy formula was developed by Flesh in 1948 and it is based on school text covering grade 3 to 12. It is wide spread, especially in the USA, because of good results and simple computation. The index is usually between 0 (hard) and 100 (easy), standard English documents averages approximately 60 to 70. Applying it to German documents does not deliver good results because of the different language structure. .sp .\"{{{ Flesh reading easy formula .if t \{\ .RS .EQ Flesch ~ Index = 206.835 - 84.6 * syllables over words - 1.015 * words over sentences .EN .RE .\} .if n \{\ .ad l Flesch Index = 206.835-84.6*syll/wds-1.015*wds/sent .ad b .\} .\"}}} .\"}}} .IP "Fog Index" \"{{{ The Fog index was developed by Robert Gunning. Its value is a school grade. The ``ideal'' Fog Index level is 7 or 8. A level above 12 indicates the writing sample is too hard for most people to read. Only use it on texts of at least hundred words to get meaningful results. Note that a correct implementation would not count words of three or more syllables that are proper names, combinations of easy words, or made three syllables by suffixes such as \(ened, \(enes, or \(ening. .sp .\"{{{ Fog Index formula .if t \{\ .RS .EQ Fog ~ Index = 0.4 * left ( words over sentences + 100 * { { words >= 3 ~ syllables } over words } right ) .EN .RE .\} .if n \{\ .ad l Fog Index = 0.4*(wds/sent+100*((wds >= 3 syll)/wds)) .ad b .\} .\"}}} .\"}}} .\" might be wrong .\".IP "WSFT Index" \"{{{ .\"The first new Vienna text formula (1. neue Wiener Sachtextformel, WSTF) .\"was developed for German documents and its result is a school grade .\"that could read the text. .\".sp .\"{{{ WSTF .\".if t \{\ .\".RS .\".EQ .\"matrix { .\"col { WSTF ~ Index = above ~ } .\"lcol { .\"0.1935 * { words >= 3 ~ syllables } over words + 0.1672 * words over sentences - .\"above .\"down 70 { 0.1297 * { words > 6 ~ characters } over words - 0.0327 * { words = 1 ~ syllable } over words - 0.875 } .\"} .\"} .\".EN .\".RE .\".\} .\".if n \{\ .\".ad l .\"WSTF Index = 0.1935*(wds >= 3 syllables)/wds .\" +0.1672*wds/sent .\" -0.1297*(wds > 6 characters)/wds .\" -0.0327*(wds = 1 syllable)/wds .\" -0.875 .\".ad b .\".\} .\"}}} .\"}}} .\" might be wrong .\".IP "Wheeler-Smith Index" \"{{{ .\"The Wheeler-Smith Index is mapped to school grades using a table: .\".sp .\"{{{ Wheeler-Smith Index .\".if t \{\ .\".RS .\".EQ .\"italic "Wheeler-Smith" ~ Index = .\"words over sentences * 100 * { words >= 3 ~ syllables } over words .\".EN .\".RE .\".\} .\".if n \{\ .\".ad l .\"Wheeler-Smith Index = wds/sent*100*((wds >= 3 syll)/wds) .\".ad b .\".\} .\"}}} .\".sp .\".RS .\".TS .\"tab(#); .\"l c c c c c c c c c c c c c. .\"Index#16##20##24##29##34##38##42 .\"School year##5##6##7##8##9##10 .\".TE .\".RE .\"}}} .IP "Lix formula" \"{{{ The Lix formula developed by Björnsson from Sweden is very simple and employs a mapping table as well: .sp .\"{{{ Lix .if t \{\ .RS .EQ Lix = words over sentences + 100 * { words > 6 ~ characters } over words .EN .RE .\} .if n \{\ .ad l Lix = wds/sent+100*(wds >= 6 char)/wds .ad b .\} .\"}}} .sp .RS .ne 2 .TS tab(#); l c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c. Index#34##38##41##44##48##51##54##57 School year##5##6##7##8##9##10##11 .TE .RE .\"}}} .IP "SMOG-Grading" \"{{{ The SMOG-Grading for English texts was developed by McLaughlin in 1969. Its result is a school grade. .sp .\"{{{ SMOG .if t \{\ .RS .EQ italic "SMOG-Grading" = sqrt { { (words >= 3 ~ syllables) } over sentences * 30 } + 3 .EN .RE .\} .if n \{\ .ad l SMOG-Grading = square root of (((wds >= 3 syll)/sent)*30) + 3 .ad b .\} .\"}}} .sp It has been adapted to German by Bamberger & Vanecek in 1984, who changed the constant +3 to \-2. .\"}}} .SS "Word usage" The word usage counts are intended to help identify excessive use of particular parts of speech. .IP "Verb Phrases" \"{{{ The category of verbs labeled "to be" identifies phrases using the passive voice. Use the passive voice sparingly, in favor of more direct verb forms. The flag \fB-p\fP causes \fBstyle\fP to list all occurrences of the passive voice. .PP The verb category "aux" measures the use of modal auxiliary verbs, such as "can", "could", and "should". Modal auxiliary verbs modify the mood of a verb. .\"}}} .IP "Conjunctions" \"{{{ The conjunctions counted by style are coordinating and subordinating. Coordinating conjunctions join grammatically equal sentence fragments, such as a noun with a noun, a phrase with a phrase, or a clause to a clause. Coordinating conjunctions are "and," "but," "or," "yet," and "nor." .PP Subordinating conjunctions connect clauses of unequal status. A subordinating conjunction links a subordinate clause, which is unable to stand alone, to an independent clause. Examples of subordinating conjunctions are "because," "although," and "even if." .\"}}} .IP "Pronouns" \"{{{ Pronouns are contextual references to nouns and noun phrases. Documents with few pronouns generally lack cohesiveness and fluidity. Too many pronouns may indicate ambiguity. .\"}}} .IP "Nominalizations" \"{{{ Nominalizations are verbs that are changed to nouns. Style recognizes words that end in "ment," "ance," "ence," or "ion" as nominalizations. Examples are "endowment," "admittance," and "nominalization." Too much nominalization in a document can sound abstract and be difficult to understand. The flag \fB-N\fP causes \fBstyle\fP to list all nominalizations. The flag \fB-n\fP prints all sentences with either the passive voice or a nominalization. .\"}}} .\"}}} .SH OPTIONS \"{{{ .IP "\fB\-L\fP \fIlanguage\fP, \fB\-\-language\fP \fIlanguage\fP" set the document language (\fBde\fP, \fBen\fP, \fBnl\fP). .IP "\fB\-l\fP \fIlength\fP, \fB\-\-print-long\fP \fIlength\fP" print all sentences longer than \fIlength\fP words. .IP "\fB\-r\fP \fIari\fP, \fB\-\-print-ari\fP \fIari\fP" print all sentences whose readability index (ARI) is greater than \fIari\fP. .IP "\fB\-p\fP \fIpassive\fP, \fB\-\-print-passive\fP" print all sentences phrased in the passive voice. .IP "\fB\-N\fP \fInominalizations\fP, \fB\-\-print-nom\fP" print all sentences containing nominalizations. .IP "\fB\-n\fP \fInominalizations-passive\fP, \fB\-\-print-nom-passive\fP" print all sentences phrased in the passive voice or containing nominalizations. .IP "\fB\-h\fP, \fB\-\-help\fP" Print a short usage message. .IP \fB\-\-version\fP Print the version. .\"}}} .SH ERRORS \"{{{ On usage errors, 1 is returned. Termination caused by lack of memory is signalled by exit code 2. .\"}}} .SH ENVIRONMENT \"{{{ .IP "\fBLC_MESSAGES\fP=\fBde\fP\^|\^\fBen\fP\^|\^\fBnl\fP" specifies the default document language. The default language is \fBen\fP. .IP "\fBLC_CTYPE\fP=\fBiso-8859-1\fP" specifies the document character set. The default character set is ASCII. .\"}}} .SH AUTHOR \"{{{ This program is GNU software, copyright 1997\(en2007 Michael Haardt . .PP It contains contributions by Jason Petrone , Uschi Stegemeier and Hans Lodder. .PP 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. .PP 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. .PP You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\"}}} .SH HISTORY \"{{{ There was a style command on old UNIX systems, which is now part of the AT&T DWB package. The original version was bound to roff by enforcing a call to deroff. .\"}}} .SH "SEE ALSO" \"{{{ deroff(1), diction(1) .P Cherry, L.L.; Vesterman, W.: \fIWriting Tools\(emThe STYLE and DICTION programs\fP, Computer Science Technical Report 91, Bell Laboratories, Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's Supplementary Documents by O'Reilly. .P Coleman, M. and Liau,T.L. (1975). 'A computer readability formula designed for machine scoring', Journal of Applied Psychology, 60(2), 283-284. .\" .\" De Vries, Hugo: \fIReading Ease@WWW\fP, http://www.shlrc.mq.edu.au/~hdevries/RE.html .\" .\" Norbert Groeben: Leserpsychologie: Textverständnis - Textverständlichkeit .\" Münster, 1982. .\"}}} diction-1.14/style.c0000644000014400001440000011204513067443010013527 0ustar michaeluser/* Notes */ /*{{{C}}}*//*{{{*/ /* This program is GNU software, copyright 1997-2007 Michael Haardt . 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*}}}*/ /* #includes */ /*{{{*/ #undef _POSIX_SOURCE #define _POSIX_SOURCE 1 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 2 #include "config.h" #include #include #include #include #ifdef HAVE_GETTEXT #include #define _(String) gettext(String) #else #define _(String) String #endif #include #include #include #include #include "getopt.h" #include "misc.h" #include "sentence.h" /*}}}*/ /* variables */ /*{{{*/ static const char *lc_ctype; enum lc_ctype_int { ASCII, ISO_8859_1 }; static enum lc_ctype_int lc_ctype_int; static const char *docLanguage; static const char *phraseEnd = (const char*)0; /*}}}*/ /* hit counting functions */ /*{{{*/ struct Hit /*{{{*/ { int *data; int capacity; int size; }; /*}}}*/ static void newHit(struct Hit *hit) /*{{{*/ { if ((hit->data=malloc((hit->capacity=3)*sizeof(int)))==(int*)0) { fprintf(stderr,_("style: out of memory\n")); exit(1); } memset(hit->data,0,hit->capacity*sizeof(int)); hit->size=0; } /*}}}*/ static void noteHit(struct Hit *hit, int n) /*{{{*/ { assert(n>0); if (n>hit->capacity) { if ((hit->data=realloc(hit->data,n*2*sizeof(int)))==(int*)0) { fprintf(stderr,_("style: out of memory\n")); exit(1); } memset(hit->data+hit->capacity,0,(n*2-hit->capacity)*sizeof(int)); hit->capacity=n*2; } ++hit->data[n-1]; if (n>hit->size) hit->size=n; } /*}}}*/ /*}}}*/ /* readability formulas */ /*{{{*/ /** * Calculate Kincaid Formula (reading grade). * @param syllables number of syllables * @param words number of words * @param sentences number of sentences */ static double kincaid(int syllables, int words, int sentences) /*{{{*/ { return 11.8*(((double)syllables)/words)+0.39*(((double)words)/sentences)-15.59; } /*}}}*/ /** * Calculate Automated Readability Index (reading grade). * @param letters number of letters * @param words the number of words * @param sentences the number of sentences */ static double ari(int letters, int words, int sentences) /*{{{*/ { return 4.71*(((double)letters)/words)+0.5*(((double)words)/sentences)-21.43; } /*}}}*/ /** * Calculate Coleman-Liau Formula. * @param letters number of letters * @param words the number of words * @param sentences the number of sentences */ static double coleman_liau(int letters, int words, int sentences) /*{{{*/ { #if 0 /* where did I get this from? */ return 5.89*(((double)letters)/words)-0.3*(((double)sentences)/(100*words))-15.8; #else return 5.879851*letters/words-29.587280*sentences/words-15.800804; #endif } /*}}}*/ /** * Calculate Flesch reading ease formula. * @param syllables number of syllables * @param words number of words * @param sentences number of sentences */ static double flesch(int syllables, int words, int sentences) /*{{{*/ { return 206.835-84.6*(((double)syllables)/words)-1.015*(((double)words)/sentences); } /*}}}*/ /** * Calculate fog index. * @param words the number of words in the text * @param bigwords the number of words which contain more than 3 syllables * @param sentences the number of sentences */ static double fog(int words, int bigwords, int sentences) /*{{{*/ { return ((((double)words)/sentences+(100.0*bigwords)/words)*0.4); } /*}}}*/ /** * Calculate 1. neue Wiener Sachtextformel (WSTF). MIGHT BE WRONG! * @param words the number of words in the text * @param shortwords the number of words that contain one syllable * @param longwords the number of words that are longer than 6 characters * @param bigwords the number of words that contain more than 3 syllables * @param sentences number of sentences */ static double wstf(int words, int shortwords, int longwords, int bigwords, int sentences) /*{{{*/ { return 0.1935*((double)bigwords)/words+0.1672*((double)words)/sentences-0.1297*((double)longwords)/words-0.0327*((double)shortwords)/words-0.875; } /*}}}*/ /** * Calculate Wheeler-Smith formula. MIGHT BE WRONG! * @param words the number of words in the text * @param bigwords the number of words that contain more than 3 syllables * @param sentences number of sentences * @returns the wheeler smith index as result and the grade level in grade. * If grade is 0, the index is lower than any grade, if the index is * 99, it is higher than any grade. */ static double wheeler_smith(int *grade, int words, int bigwords, int sentences) /*{{{*/ { double idx=(((double)words)/sentences) * 10.0 * (((double)bigwords)/words); if (idx<=16) *grade=0; else if (idx<=20) *grade=5; else if (idx<=24) *grade=6; else if (idx<=29) *grade=7; else if (idx<=34) *grade=8; else if (idx<=38) *grade=9; else if (idx<=42) *grade=10; else *grade=99; return idx; } /*}}}*/ /** * Calculate Lix formula of Björnsson from Sweden. * @param words the number of words in the text * @param sentences number of sentences * @param longwords the number of words that are longer than 6 characters * @returns the wheeler smith index as result and the grade level in grade. * If grade is 0, the index is lower than any grade, if the index is * 99, it is higher than any grade. */ static double lix(int *grade, int words, int longwords, int sentences) /*{{{*/ { double idx=((double)words)/sentences+100.0*((double)longwords)/words; if (idx<34) *grade=0; else if (idx<38) *grade=5; else if (idx<41) *grade=6; else if (idx<44) *grade=7; else if (idx<48) *grade=8; else if (idx<51) *grade=9; else if (idx<54) *grade=10; else if (idx<57) *grade=11; else *grade=99; return idx; } /*}}}*/ /** * Calculate SMOG-Grading. * @param bigwords the number of words that contain more than 3 syllables * @param sentences number of sentences */ static double smog(int bigwords, int sentences) /*{{{*/ { if (strncmp(docLanguage,"de",2)==0) return sqrt((((double)bigwords)/((double)sentences))*30)-2.0; else return sqrt((((double)bigwords)/((double)sentences))*30.0)+3.0; } /*}}}*/ /*}}}*/ /* word class checks */ /*{{{*/ static int wordcmp(const char *r, const char *s) /*{{{*/ { int res; while (*r) { if ((res=*r-tolower(*s))!=0) return res; ++r; ++s; } return isalpha(*s); } /*}}}*/ /** * Test if the word is an article. This function uses docLanguage to * determine the used language. */ static int article(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* German articles */ /*{{{*/ { "der", "die", "das", "des", "dem", "den", "ein", "eine", "einer", "eines", "einem", "einen", (const char*)0 }; /*}}}*/ static const char *en[]= /* English articles */ /*{{{*/ { "the", "a", "an", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch articles (lidwoord) */ /*{{{*/ { "de", "het", "een", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word)==0) return 1; else ++list; return 0; } /*}}}*/ /** * Test if the word is a pronoun. This function uses docLanguage to * determine the used language. */ static int pronoun(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Pronomen */ /*{{{*/ { /* Nominativ */ "ich", "du", "er", "sie", "es", "wir", "ihr", /* sie */ /* Akkusativ */ "mich", "dich", "ihn", "uns", "euch", /* sie */ /* Dativ */ "mir", "dir", "ihm", /* uns euch ihr */ "ihnen", /* Genitiv */ "mein", "dein", "sein", "unser", "euer", /* ihr */ /* Genitiv */ "meiner", "deiner", "seiner", "unserer", "eurer", "ihrer", /* Genitiv */ "meine", "deine", "seine", "unsere", "eure", "ihre", /* Genitiv */ "meines", "deines", "seines", "unseres", "eures", "ihres", /* Genitiv */ "meinem", "deinem", "seinem", "unserem", "eurem", "ihrem", /* Genitiv */ "meinen", "deinen", "seinen", "unseren", "euren", "ihren", (const char*)0 }; /*}}}*/ static const char *en[]= /* pronouns */ /*{{{*/ { "i", "me", "we", "us", "you", "he", "him", "she", "her", "it", "they", "them", "thou", "thee", "ye", "myself", "yourself", "himself", "herself", "itself", "ourselves", "yourselves", "themselves", "oneself", "my", "mine", "his", "hers", "yours", "ours", "theirs", "its", "our", "that", "their", "these", "this", "those", "your", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch pronouns (voornaamwoord) */ /*{{{*/ { "ik", "jij", "je", "u", "gij", "ge", "hij", "zij", "ze", "het", /* persoonlijk voornaamwoord */ "wij", "we", "jullie", /* "zij", "ze", */ "me", "mijzelf", "mezelf", "je", "jezelf", "uzelf", /* wederkeren voornaamwoord */ "zich", "zichzelf", "haarzelf", "onszelf", /* "jezelf", */ "elkaar", "elkaars", "elkander", "elkanders", "mekaar", "mekaars", /* wedekerig voornamwoord */ "mijnen", "deinen", "zijnen", "haren", "onzen", "uwen", "hunnen", "haren", /* pers. vnw: obsolete naamvallen */ "mijner", "deiner", "zijner", "harer", "onzer", "uwer", "hunner", "harer", "mijnes", "deines", "zijnes", "hares", "onzes", "uwes", "hunnes", "hares", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word)==0) return 1; else ++list; return 0; } /*}}}*/ /** * Test if the word is an interrogative pronoun. This function uses * docLanguage to determine the used language. */ static int interrogativePronoun(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Interrogativpronomen */ /*{{{*/ { "wer", "was", "wem", "wen", "wessen", "wo", "wie", "warum", "weshalb", "wann", "wieso", "weswegen", (const char*)0 }; /*}}}*/ static const char *en[]= /* interrogative pronouns */ /*{{{*/ { "why", "who", "what", "whom", "when", "where", "how", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch interrogative pronouns (vragend voornaamwoord) */ /*{{{*/ { "welke", "wat", "wat voor", "wat voor een", "welk", "wie", "waar", "wanneer", "hoe", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word)==0) return 1; else ++list; return 0; } /*}}}*/ /** * Test if the word is an conjunction. This function uses * docLanguage to determine the used language. */ static int conjunction(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Konjunktionen */ /*{{{*/ { "und", "oder", "aber", "sondern", "doch", "nur", "bloß", "denn", "weder", "noch", "sowie", (const char*)0 }; /*}}}*/ static const char *en[]= /* conjunctions */ /*{{{*/ { "and", "but", "or", "yet", "nor", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch conjunctions (nevenschikkend voegwoord) */ /*{{{*/ { "en", "maar", "of", "want", "dus", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word)==0) return 1; else ++list; return 0; } /*}}}*/ /** * Test if the word is a nominalization. This function uses * docLanguage to determine the used language. */ static int nominalization(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Nominalisierungsendungen */ /*{{{*/ { "ung", "heit", "keit", "nis", "tum", (const char*)0 }; /*}}}*/ static const char *en[]= /* nominalization suffixes */ /*{{{*/ { /* a bit limited, but it is exactly what the original style(1) did */ "tion", "ment", "ence", "ance", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch nominalization suffixes (verzelfstandigde werkwoorden */ /*{{{*/ { /* vereenvoudigd */ "tie", "heid", "ing", "end", "ende", (const char*)0 }; /*}}}*/ const char **list; /* exclude words too short to have such long suffixes */ if (l < 7) return 0; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word+l-strlen(*list))==0) return 1; else ++list; return 0; } /*}}}*/ /** * Test if the word is an sub conjunction. This function uses * docLanguage to determine the used language. */ static int subConjunction(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* unterordnende Konjunktionen */ /*{{{*/ { /* bei Nebensätzen */ "als", "als dass", "als daß", "als ob", "anstatt dass", "anstatt daß", "ausser dass", "ausser daß", "ausser wenn", "bevor", "bis", "da", "damit", "dass", "daß", "ehe", "falls", "indem", "je", "nachdem", "ob", "obgleich", "obschon", "obwohl", "ohne dass", "ohne daß", "seit", "so daß", "sodass", "sobald", "sofern", "solange", "so oft", "statt dass", "statt daß", "während", "weil", "wenn", "wenn auch", "wenngleich", "wie", "wie wenn", "wiewohl", "wobei", "wohingegen", "zumal" /* bei Infinitivgruppen */ "als zu", "anstatt zu", "ausser zu", "ohne zu", "statt zu", "um zu", (const char*)0 }; /*}}}*/ static const char *en[]= /* subordinating conjunctions */ /*{{{*/ { "after", "because", "lest", "till", "'til", "although", "before", "now that", "unless", "as", "even if", "provided that", "provided", "until", "as if", "even though", "since", "as long as", "so that", "whenever", "as much as", "if", "than", "as soon as", "inasmuch", "in order that", "though", "while", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch subordinating conjunctions (onderschikeknde voegwoorden */ /*{{{*/ { /* onderschikkende voegwoorden */ "aangezien", "als", "alsof", "behalve", "daar", "daarom", "dat", "derhalve", "doch", "doordat", "hoewel", "mits", "nadat", "noch", "ofschoon", "omdat", "ondanks", "opdat", "sedert", "sinds", "tenzij", "terwijl", "toen", "totdat", "voordat", "wanneer", "zoals", "zodat", "zodra", "zonder dat", /* infitief constructies */ "om te", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) { if (wordcmp(*list,word)==0) { phraseEnd = word+strlen(*list); return 1; } else ++list; } return 0; } /*}}}*/ /** * Test if the word is an preposition. This function uses * docLanguage to determine the used language. */ static int preposition(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Präpositionen */ /*{{{*/ { "aus", "außer", "bei", "mit", "nach", "seit", "von", "zu", "bis", "durch", "für", "gegen", "ohne", "um", "an", "auf", "hinter", "in", "neben", "über", "unter", "vor", "zwischen", "anstatt", "statt", "trotz", "während", "wegen", (const char*)0 }; /*}}}*/ static const char *en[]= /* prepositions */ /*{{{*/ { "aboard", "about", "above", "according to", "across from", "after", "against", "alongside", "alongside of", "along with", "amid", "among", "apart from", "around", "aside from", "at", "away from", "back of", "because of", "before", "behind", "below", "beneath", "beside", "besides", "between", "beyond", "but", "by means of", "concerning", "considering", "despite", "down", "down from", "during", "except", "except for", "excepting for", "from among", "from between", "from under", "in addition to", "in behalf of", "in front of", "in place of", "in regard to", "inside of", "inside", "in spite of", "instead of", "into", "like", "near to", "off", "on account of", "on behalf of", "onto", "on top of", "on", "opposite", "out of", "out", "outside", "outside of", "over to", "over", "owing to", "past", "prior to", "regarding", "round about", "round", "since", "subsequent to", "together", "with", "throughout", "through", "till", "toward", "under", "underneath", "until", "unto", "up", "up to", "upon", "with", "within", "without", "across", "along", "by", "of", "in", "to", "near", "of", "from", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch prepositions (voorzetsels) */ /*{{{*/ { "à", "aan", "ad", "achter", "behalve", "beneden", "betreffende", "bij", "binnen", "blijkens", "boven", "buiten", "circa", "conform", "contra", "cum", "dankzij", "door", "gedurende", "gezien", "hangende", "in", "ingevolge", "inzake", "jegens", "krachtens", "langs", "met", "middels", "mits", "na", "naar", "naast", "nabij", "namens", "niettegenstaande", "nopens", "om", "omstreeks", "omtrent", "ondanks", "onder", "ongeacht", "onverminderd", "op", "over", "overeenkomstig", "per", "plus", "richting", "rond", "rondom", "sedert", "staande", "te", "tegen", "tegenover", "ten", "ter", "tijdens", "tot", "tussen", "uit", "uitgezonderd", "van", "vanaf", "vanuit", "vanwege", "versus", "via", "volgens", "voor", "voorbij", "wegens", "zonder", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) { if (wordcmp(*list,word)==0) { phraseEnd = word+strlen(*list); return 1; } else ++list; } return 0; } /*}}}*/ /** * Test if the word is an auxiliary verb. This function uses * docLanguage to determine the used language. */ static int auxVerb(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Hilfsverben */ /*{{{*/ { "haben", "habe", "hast", "hat", "habt", "gehabt", "hätte", "hättest", "hätten", "hättet", "werden", "werde", "wirst", "wird", "werdet", "geworden", "würde", "würdest", "würden", "würdet", "können", "kann", "kannst", "könnt", "konnte", "konntest", "konnten", "konntet", "gekonnt", "könnte", "könntest", "könnten", "könntet", "müssen", "muss", "muß", "musst", "müsst", "musste", "musstest", "mussten", "gemusst", "müsste", "müsstest", "müssten", "müsstet", "sollen", "soll", "sollst", "sollt", "sollte", "solltest", "solltet", "sollten", "gesollt", (const char*)0 }; /*}}}*/ static const char *en[]= /* auxiliary verbs */ /*{{{*/ { "will", "shall", "cannot", "may", "need to", "would", "should", "could", "might", "must", "ought", "ought to", "can't", "can", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch auxiliary verbs (hulpwerkwoorden) */ /*{{{*/ { /* in combinatie met voltooid deelwoord */ /* hebben */ "heb", "hebt", "heeft", "hebben", "had", "hadden", "gehad", /* zijn */ /* "ben", "bent", "is", "zijn", "was", "waren", "geweest", */ /* worden */ "word", "wordt", "worden", "werd", "werden", "geworden", /* in combinatie met infinitief */ /* kunnen */ "kan", "kan", "kunnen", "kon", "konden", "gekund", /* willen */ "wil", "willen", "wilde", "wilden", "gewild", "wou", "wouden", /* zullen */ "zal", "zult", "zullen", "zou", "zouden", /* mogen */ "mag", "mogen", "mocht", "mochten", "gemogen", /*moeten */ "moet", "moeten", "moest", "moesten", "gemoeten", /* hoeven */ "hoef", "hoeft", "hoeven", "hoefde", "hoefden", "gehoeven", /* doen */ "doe", "doet", "doen", "deed", "deden", "gedaan", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) { if (wordcmp(*list,word)==0) { phraseEnd = word+strlen(*list); return 1; } else ++list; } return 0; } /*}}}*/ /** * Test if the word is an 'to be' verb. This function uses * docLanguage to determine the used language. */ static int tobeVerb(const char *word, size_t l) /*{{{*/ { static const char *de[]= /* Hilfsverb sein */ /*{{{*/ { "sein", "bin", "bist", "ist", "sind", "seid", "war", "warst", "wart", "waren", "gewesen", "wäre", "wärst", "wär", "wären", "wärt", "wäret", (const char*)0 }; /*}}}*/ static const char *en[]= /* auxiliary verb to be */ /*{{{*/ { "be", "being", "was", "were", "been", "are", "is", (const char*)0 }; /*}}}*/ static const char *nl[]= /* Dutch auxiliary verb to be (zijn) */ /*{{{*/ { "ben", "bent", "is", "zijn", "was", "waren", "geweest", (const char*)0 }; /*}}}*/ const char **list; if (strncmp(docLanguage,"de",2)==0) list=de; else if (strncmp(docLanguage,"en",2)==0) list=en; else if (strncmp(docLanguage,"nl",2)==0) list=nl; else assert(0); while (*list) if (wordcmp(*list,word)==0) return 1; else ++list; return 0; } /*}}}*/ /*}}}*/ /* syllable counting */ /*{{{*/ /** * Check if the character is pronounced as a vowel. */ static int vowel(char c) /*{{{*/ { if (c=='y' && strncmp(docLanguage,"en",2)) return 1; switch (lc_ctype_int) { case ASCII: return (c=='a' || c=='e' || c=='i' || c=='o' || c=='u'|| c=='y'); /* JDL */ case ISO_8859_1: return (c=='a' || c=='ä' || c=='e' || c=='i' || c=='o' || c=='ö' || c=='u' || c=='ü' || /* JDL */ c=='ë' || c=='é' || c=='è' || c=='à' || c=='i' || c=='ï' || c=='y'); default: assert(0); } } /*}}}*/ /** * Count syllables for english words by counting vowel-consonant pairs. * @param s the word * @param l the word's length */ static int syll_en(const char *s, size_t l) /*{{{*/ { int count=0; if (l>=2 && *(s+l-2)=='e' && *(s+l-1)=='d') l-=2; while (l) { if (l>=2 && vowel(*s) && !vowel(*(s+1))) { ++count; s+=2; l-=2; } else { ++s; --l; } } return (count==0 ? 1 : count); } /*}}}*/ /** * Count syllables for German words by counting vowel-consonant or * consonant-vowel pairs, depending on the first character being a vowel or * not. If it is, a trailing e will be handled with a special rule. This * algorithm fails on "vor-ueber". * @param s the word * @param l the word's length */ static int syll_de(const char *s, size_t l) /*{{{*/ { int count=0; size_t ol=l; if (vowel(*s)) while (l) { if (l>=2 && vowel(*s) && !vowel(*(s+1))) { ++count; s+=2; l-=2; } else if (l==1 && ol>1 && !vowel(*(s-1)) && *s=='e') { ++count; s+=1; l-=1; } else { ++s; --l; } } else while (l) { if (l>=2 && !vowel(*s) && vowel(*(s+1))) { ++count; s+=2; l-=2; } else { ++s; --l; } } return (count==0 ? 1 : count); } /*}}}*/ /** * Count syllables for Dutch words by counting vowel-consonant or * consonant-vowel pairs, depending on the first character being a vowel or * not. If it is, a trailing e will be handled with a special rule. This * algorithm fails on "vor-ueber". * @param s the word * @param l the word's length */ static int syll_nl(const char *s, size_t l) /*{{{*/ { int count=0; size_t ol=l; if (vowel(*s)) while (l) { if (l>=2 && vowel(*s) && !vowel(*(s+1))) { ++count; s+=2; l-=2; } else if (l==1 && ol>1 && !vowel(*(s-1)) && *s=='e') { ++count; s+=1; l-=1; } else { ++s; --l; } } else while (l) { if (l>=2 && !vowel(*s) && vowel(*(s+1))) { ++count; s+=2; l-=2; } else { ++s; --l; } } return (count==0 ? 1 : count); } /*}}}*/ /** * Count syllables. First, charset is set to the used character set. * Depending on the language, the right counting function is called. * @param s the word * @param l the word's length */ static int syll(const char *s, size_t l) /*{{{*/ { assert(s!=(const char*)0); assert(l>=1); if (strncmp(docLanguage,"de",2)==0) return syll_de(s,l); else if (strncmp(docLanguage,"en",2)==0) return syll_en(s,l); else if (strncmp(docLanguage,"nl",2)==0) return syll_nl(s,l); else return syll_en(s,l); } /*}}}*/ /*}}}*/ /* global style() variables */ /*{{{*/ static int characters; static int syllables; static int words; static int shortwords; static int longwords; static int bigwords; static int sentences; static int questions; static int passiveSent; static int beginArticles; static int beginPronouns; static int pronouns; static int beginInterrogativePronouns; static int interrogativePronouns; static int beginConjunctions; static int conjunctions; static int nominalizations; static int prepositions; static int beginPrepositions; static int beginSubConjunctions; static int subConjunctions; static int auxVerbs; static int tobeVerbs; static int shortestLine,shortestLength; static int longestLine,longestLength; static int paragraphs; static int printLongSentences=0; static int printNomSentences=0; static int printPassiveSentences=0; static float printARI=0.0; static struct Hit lengths; /*}}}*/ /** * Process one sentence. * @param str sentence * @param length its length */ static void style(const char *str, size_t length, const char *file, int line, int col, int endLine, int endCol) /*{{{*/ { int firstWord=1; int inword=0; int innumber=0; int wordLength=-1; int sentWords=0; int sentLetters=0; int count; int passive=0; int nom=0; const char *s=str,*end=s+length; if (length==0) { ++paragraphs; return; } assert(str!=(const char*)0); assert(length>=2); phraseEnd = (const char*)0; while (s=3) ++bigwords; else if (count==1) ++shortwords; if (wordLength>6) ++longwords; if (s-wordLength > phraseEnd) { /* part of speech tagging-- order matters! */ if (article(s-wordLength,wordLength) && firstWord) ++beginArticles; else if (pronoun(s-wordLength,wordLength)) { ++pronouns; if (firstWord) ++beginPronouns; } else if (interrogativePronoun(s-wordLength,wordLength)) { ++interrogativePronouns; if (firstWord) ++beginInterrogativePronouns; } else if (conjunction(s-wordLength,wordLength)) { ++conjunctions; if (firstWord) ++beginConjunctions; } else if (subConjunction(s-wordLength,wordLength)) { ++subConjunctions; if (firstWord) ++beginSubConjunctions; } else if (preposition(s-wordLength,wordLength)) { ++prepositions; if (firstWord) ++beginPrepositions; } else if (tobeVerb(s-wordLength,wordLength)) { ++passive; ++tobeVerbs; } else if (auxVerb(s-wordLength,wordLength)) ++auxVerbs; else if (nominalization(s-wordLength,wordLength)) { ++nom; ++nominalizations; } } if (firstWord) firstWord = 0; } else { ++wordLength; ++characters; ++sentLetters; } } else if (innumber) { if (isdigit(*s) || ((*s=='.' || *s==',') && isdigit(*(s+1)))) { ++wordLength; ++characters; ++sentLetters; } else { innumber=0; ++syllables; } } else { if (isalpha(*s)) { ++words; ++sentWords; inword=1; wordLength=1; ++characters; ++sentLetters; } else if (isdigit(*s)) { ++words; ++sentWords; innumber=1; wordLength=1; ++characters; ++sentLetters; } } ++s; } ++sentences; if (shortestLine==0 || sentWordslongestLength) { longestLine=sentences; longestLength=sentWords; } if (str[length-1]=='?') ++questions; noteHit(&lengths,sentWords); if (passive) ++passiveSent; if ((printLongSentences && sentWords>=printLongSentences) || (printARI && ari(sentLetters,sentWords,1)>printARI) || (printPassiveSentences && passive) || (printNomSentences && nom)) printf("%s:%d.%d-%d.%d: %s\n",file,line,col,endLine,endCol,str); } /*}}}*/ static void print_usage(FILE *handle) /*{{{*/ { fputs(_("\ Usage: style [-L language] [-l length] [-r ari] [file ...]\n\ style [--language language] [--print-long length] [--print-ari ari]\n\ [file ...]\n\ style --version\n"),handle); } /*}}}*/ int main(int argc, char *argv[]) /*{{{*/ { /* variables */ /*{{{*/ int usage=0,c; static struct option lopts[]= { { "help", no_argument, 0, 'h' }, { "print-long", required_argument, 0, 'l' }, { "language", required_argument, 0, 'L' }, { "print-ari", required_argument, 0, 'r' }, { "version", no_argument, 0, 'v' }, { "print-passive", no_argument, 0, 'p' }, { "print-nom", no_argument, 0, 'N' }, { "print-nom-passive", no_argument, 0, 'N' }, { (const char*)0, 0, 0, '\0' } }; /*}}}*/ /* locale */ /*{{{*/ setlocale(LC_ALL,""); #ifdef HAVE_GETTEXT bindtextdomain("diction", LOCALEDIR); textdomain("diction"); #endif /*}}}*/ /* parse options */ /*{{{*/ #if 0 lc_ctype=setlocale(LC_CTYPE,(const char*)0); docLanguage=setlocale(LC_MESSAGES,(const char*)0); #else if ((lc_ctype=getenv("LC_CTYPE"))==(const char*)0) lc_ctype="C"; if ((docLanguage=getenv("LC_MESSAGES"))==(const char*)0) docLanguage="C"; #endif if (strcmp(docLanguage,"C")==0) docLanguage="en"; if (strstr(lc_ctype,"8859-1")) lc_ctype_int=ISO_8859_1; else lc_ctype_int=ASCII; while ((c=getopt_long(argc,argv,"l:L:r:hpnN",lopts,(int*)0))!=EOF) switch(c) { case 'l': { char *end; printLongSentences=strtol(optarg,&end,10); if (end==optarg || *end!='\0') usage=1; break; } case 'L': { docLanguage=optarg; if (strncmp(docLanguage,"de",2) && strncmp(docLanguage,"en",2) && strncmp(docLanguage,"nl",2)) { fprintf(stderr,_("style: Incorrect language option `%s'.\n"),docLanguage); exit(1); } break; } case 'r': { char *end; printARI=strtod(optarg,&end); if (end==optarg || *end!='\0') usage=1; break; } case 'p': { printPassiveSentences=1; break; } case 'N': { printNomSentences=1; break; } case 'n': { printNomSentences=1; printPassiveSentences=1; break; } case 'v': fputs("GNU style " VERSION "\n",stdout); exit(0); case 'h': usage=2; break; default: usage=1; break; } if (usage==1) { print_usage(stderr); fputs("\n",stderr); fputs(_("Try style -h|--help for more information.\n"),stderr); exit(1); } else if (usage==2) { print_usage(stdout); fputs("\n",stdout); fputs(_("Analyse surface characteristics of a document.\n\n"),stdout); fputs(_("\ -L, --language set the document language.\n\ -l, --print-long print all sentences longer than words\n\ -r, --print-ari print all sentences with an ARI greater than than \n\ -p, --print-passive print all sentences phrased in the passive voice\n\ -N, --print-nom print all sentences containing nominalizations\n\ -n, --print-nom-passive print all sentences phrased in the passive voice or\n\ containing nominalizations\n"),stdout); fputs(_("\ -h, --help print this message\n\ --version print the version\n"),stdout); fputs("\n",stdout); fputs(_("Report bugs to .\n"),stdout); exit(0); } /*}}}*/ newHit(&lengths); if (optind==argc) sentence("style",stdin,"(stdin)",style,docLanguage); else while (optind=60 && fl<=70 ? _("/100 (plain English)") : _("/100")); printf(" %s: %.1f\n","Fog Index",fog(words,bigwords,sentences)); #ifdef MIGHT_BE_WRONG printf(" %s: %.1f\n","1. WSTF Index",wstf(words,shortwords,longwords,bigwords,sentences)); printf(" %s: %.1f = ","Wheeler-Smith Index",wheeler_smith(&wsg,words,bigwords,sentences)); if (wsg==0) printf(_("below school year 5\n")); else if (wsg==99) printf(_("higher than school year 10\n")); else printf(_("school year %d\n"),wsg); #endif printf(" %s: %.1f = ",_("Lix"),lix(&lixg,words,longwords,sentences)); if (lixg==0) printf(_("below school year 5\n")); else if (lixg==99) printf(_("higher than school year 11\n")); else printf(_("school year %d\n"),lixg); printf(" %s: %.1f\n",_("SMOG-Grading"),smog(bigwords,sentences)); printf(_("sentence info:\n")); printf(_(" %d characters\n"),characters); printf(_(" %d words, average length %.2f characters = %.2f syllables\n"),words,((double)characters)/words,((double)syllables)/words); printf(_(" %d sentences, average length %.1f words\n"),sentences,((double)words)/sentences); shortLength=((double)words)/sentences-4.5; if (shortLength<1) shortLength=1; for (i=0,shortSent=0; i<=shortLength; ++i) shortSent+=lengths.data[i]; printf(_(" %d%% (%d) short sentences (at most %d words)\n"),100*shortSent/sentences,shortSent,shortLength); longLength=((double)words)/sentences+10.5; for (i=longLength,longSent=0; i<=lengths.size; ++i) longSent+=lengths.data[i]; printf(_(" %d%% (%d) long sentences (at least %d words)\n"),100*longSent/sentences,longSent,longLength); printf(_(" %d paragraphs, average length %.1f sentences\n"),paragraphs,((double)sentences)/paragraphs); printf(_(" %d%% (%d) questions\n"),100*questions/sentences,questions); printf(_(" %d%% (%d) passive sentences\n"),100*passiveSent/sentences,passiveSent); printf(_(" longest sent %d wds at sent %d; shortest sent %d wds at sent %d\n"),longestLength,longestLine,shortestLength,shortestLine); /* Missing output: sentence types: simple 100% (1) complex 0% (0) compound 0% (0) compound-complex 0% (0) word usage: verb types as % of total verbs tobe 100% (1) aux 0% (0) inf 0% (0) passives as % of non-inf verbs 0% (0) types as % of total prep 0.0% (0) conj 0.0% (0) adv 0.0% (0) noun 25.0% (1) adj 25.0% (1) pron 25.0% (1) nominalizations 0 % (0) */ printf(_("word usage:\n")); printf(_(" verb types:\n")); printf(_(" to be (%d) auxiliary (%d) \n"), tobeVerbs, auxVerbs); printf(_(" types as %% of total:\n")); printf(_(" conjunctions %1.f%% (%d) pronouns %1.f%% (%d) prepositions %1.f%% (%d)\n"), (100.0*(conjunctions+subConjunctions))/words, conjunctions+subConjunctions, (100.0*pronouns)/words, pronouns, (100.0*prepositions)/words, prepositions); printf(_(" nominalizations %1.f%% (%d)\n"), (100.0*nominalizations)/words, nominalizations); printf(_("sentence beginnings:\n")); printf(_(" pronoun (%d) interrogative pronoun (%d) article (%d)\n"),beginPronouns,beginInterrogativePronouns,beginArticles); printf(_(" subordinating conjunction (%d) conjunction (%d) preposition (%d)\n"), beginSubConjunctions,beginConjunctions,beginPrepositions); /* subject opener: noun (0) pron (1) pos (0) adj (0) art (0) tot 100% prep 0% (0) adv 0% (0) verb 0% (0) sub_conj 0% (0) conj 0% (0) expletives 0% (0) */ } exit(0); } /*}}}*/